LocalMessenger<M, A> constructor

LocalMessenger<M, A>(
  1. Handler<M, A> _handler
)

Creates a LocalMessenger that handles messages with the given Handler.

Use the of constructor to wrap a function directly.

Implementation

LocalMessenger(this._handler);