RunnerService class
Wraps a Runner
and ensures that it's spawned before executing any operations
- Available Extensions
Constructors
-
RunnerService(RunnerBuilder builder, Future<
Runner> spawner)
Properties
- builder → RunnerBuilder
-
final
- debugName → String
-
no setter
- defaultTimeout → Duration?
-
no setter
- errors → Stream
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- i ↔ int
-
getter/setter pair
- isShuttingDown → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future -
Stop the runner.
override
-
kill(
[Duration timeout = const Duration(seconds: 1)]) → Future? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ping(
[Duration duration = const Duration(seconds: 1)]) → Future< bool> -
ready(
) → Future< RunnerService> -
run<
R, P> (FutureOr< R> function(P argument), P argument, {String? name, Duration? timeout, FutureOr<R> onTimeout()?, bool ignoreShutdown = false}) → Future<R> -
Request that
function
be called with the provided arguments.override -
submit<
ParamType> (String key, ParamType params) → Future< Work?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- platform → WorkerServicePlatform
-
final