Task<A> class

Implemented types
Available Extensions

Constructors

Task(Function0<Future<A>> _run)

Properties

hashCode int
The hash code for this object.
no setterinherited
option Task<Option<A>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timed Task<Tuple2<Duration, A>>
no setter
voided Task<void>
no setter

Methods

andThen<B>(covariant Task<B> next) Task<B>
override
ap<B>(covariant Task<Function1<A, B>> ff) Task<B>
override
attempt() Task<Either<Object, A>>
override
bind<B>(covariant Function1<A, Task<B>> f) Task<B>
override
both<B>(Task<B> that) Task<Tuple2<A, B>>
bracket<B>(Function1<A, Task<B>> use, Function1<A, Task<void>> release) Task<B>
delayBy(Duration duration) Task<A>
fail(Object err) Task<A>
override
flatMap<B>(covariant Function1<A, Task<B>> f) Task<B>
override
flatTap<B>(Task<B> that) Task<A>
guarantee(Task<void> finalizer) Task<A>
handleError(Function1<Object, A> f) Task<A>
handleErrorWith(Function1<Object, Task<A>> f) Task<A>
map<B>(B f(A a)) Task<B>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
product<B>(Task<B> that) Task<Tuple2<A, B>>
productL<B>(Task<B> that) Task<A>
productR<B>(Task<B> that) Task<B>
pure<B>(B b) Task<B>
race<B>(Task<B> that) Task<Either<A, B>>
redeem<B>(Function1<Object, B> recover, Function1<A, B> map) Task<B>
redeemWith<B>(Function1<Object, Task<B>> recover, Function1<A, Task<B>> bind) Task<B>
replace<B>(B replacement) Task<B>
override
replicate(int n) Task<IList<A>>
run() Future<A>
strengthL<B>(B b) Task<Tuple2<B, A>>
override
strengthR<B>(B b) Task<Tuple2<A, B>>
override
timeout(Duration timeLimit) Task<A>
timeoutTo(Duration timeLimit, Task<A> fallback) Task<A>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

unit Task<void>
no setter

Static Methods

delay<A>(Function0<A> f) Task<A>
failed<A>(Object err) Task<A>
print(String s) Task<void>
sleep(Duration duration) Task<void>
value<A>(A a) Task<A>