TestWorkerLoop class abstract

Interface for a TestWorkerLoop which allows you to enqueue responses.

Implemented types
Implementers

Constructors

TestWorkerLoop()

Properties

hashCode int
The hash code for this object.
no setterinherited
printMessage String?
If set, this message will be printed during the call to performRequest.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

enqueueResponse(WorkResponse response) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performRequest(WorkRequest request) → dynamic
Perform a single WorkRequest, and return either a WorkResponse or a Future<WorkResponse>.
inherited
run() → dynamic
Run the worker loop. Should return either a Future or null.
inherited
toString() String
A string representation of this object.
inherited

Operators

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