ActorRef class

A reference to an actor. The only way to communicate with an actor is to send messages to it using the API of the ActorRef.

Properties

hashCode int
The hash code for this object.
no setterinherited
path Uri
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(Object? message, {ActorRef? replyTo, String? correlationId}) Future<void>
Sends a message to the actor referenced by this ActorRef. It is guaranteed, that an actor processes only one message at a time.
shutdown() Future<void>
Sends a shutdownMsg to the actor. After the shutdown message was processed, the actor is stopped and its mailbox is cleared. Sending new message to a stopped actor leads to an exception.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited