package
0.6.1-preview
Repository: https://github.com/hyperledger-labs/fabric.git
Documentation: pkg.go.dev
# Functions
NewManagerImpl creates an instance of managerImpl.
NewTimerFactoryImpl creates a new TimerFactory for the given Manager.
SendEvent performs the event loop on a receiver to completion.
# Interfaces
Event is a type meant to clearly convey that the return type or parameter to a function will be supplied to/from an events.Manager.
Manager provides a serialized interface for submitting events to a Receiver on the other side of the queue.
Receiver is a consumer of events, ProcessEvent will be called serially as events arrive.
Timer is an interface for managing time driven events the special contract Timer gives which a traditional golang timer does not, is that if the event thread calls stop, or reset then even if the timer has already fired, the event will not be delivered to the event queue.
TimerFactory abstracts the creation of Timers, as they may need to be mocked for testing.