Spawn class
Same as Fork but creates a detached task. A detached task remains independent from its parent and acts like a top-level task. The parent will not wait for detached tasks to terminate before returning and all events which may affect the parent or the detached task are completely independents (error, cancellation).
- Inheritance
-
- Object
- Effect
- EffectWithResult
- Fork
- Spawn
Constructors
Properties
- args → List?
-
Arguments of the function to call
finalinherited
- Catch → Function?
-
A Generator function or a normal function to invoke for uncaught errors.
finalinherited
- detached → bool
-
Determines if returning Task is attached or not.
finalinherited
- Finally → Function?
-
A Generator function or a normal function to invoke in any case after call.
finalinherited
- fn → Function
-
A Generator function or a normal function to call.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
Meta name of function
finalinherited
-
namedArgs
→ Map<
Symbol, dynamic> ? -
Named arguments of the function to call
finalinherited
- result ↔ Result?
-
Result after effect is resolved.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDefinition(
) → Map< String, dynamic> -
Returns all properties of effect as a dictionary object
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited