hio v0.0.4 (2019-10-18T11:46:13Z)
Dub
Repo
Task
hio
scheduler
Undocumented in source.
class
Task : Fiber,
Computation
(
F
A
...
)
if
(
isCallable
!
F
) {
enum
Void
;
alias
start
=
call
;
this
(F f, A args);
bool
wait
(Duration timeout);
static if
(
!Void
)
auto
waitResult
();
bool
ready
();
static if
(
!Void
)
auto
result
[@property getter];
alias
value
=
result
;
}
Constructors
this
this
(F f, A args)
Undocumented in source.
Members
Aliases
start
alias
start
=
call
Undocumented in source.
value
alias
value
=
result
Undocumented in source.
Functions
ready
bool
ready
()
Undocumented in source. Be warned that the author may not have intended to support it.
wait
bool
wait
(Duration timeout)
wait() - wait forewer wait(Duration) - wait with timeout
waitResult
auto
waitResult
()
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
Void
enum
Void
;
Undocumented in source.
Properties
result
auto
result
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Inherited Members
From Computation
ready
bool
ready
()
Undocumented in source.
wait
bool
wait
(Duration t)
Undocumented in source.
Meta
Source
See Implementation
hio
scheduler
classes
NotReadyException
Task
TestException
Threaded
functions
App
hlSleep
mapM
mapMxN
spawnTask
task
threaded
interfaces
Computation
structs
Box
TaskNotReady