AsyncTaskChannelPort class abstract

Base class for channels ports.

Available Extensions

Constructors

AsyncTaskChannelPort(AsyncTaskChannel _channel)

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
final
isClosed bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes this port. If it's already closed, a call will have no effect.
isInExecutionContext(AsyncTask task) bool
if true, indicates that the current context is inside AsyncTask.run.
messageQueueLength(bool inExecutingContext) int
Returns the length of the message queue.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onReceiveMessage(dynamic message, bool fromExecutingContext) → void
When a message is received by this port implementation.
read<T>(bool inExecutingContext) Future<T>
Reads a message.
readSync<T>(bool inExecutingContext) → T?
Reads a message from queue if present or return null.
send<M>(M message, bool inExecutingContext) → void
Sends message to the other context.
toString() String
A string representation of this object.
override

Operators

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