toSendable method

Future<Sendable<M, A>> toSendable()

A handle to this Actor which can be sent to other actors.

Unlike an Actor, a Sendable cannot be closed, hence only the original creator of an Actor is able to close it.

Implementation

Future<Sendable<M, A>> toSendable() async => SendableImpl(await _sender);