Struct Task
Represents a single task as started using vibe.core.runTask.
struct Task
;
Note that the Task type is considered weakly isolated and thus can be passed between threads using vibe.core.concurrency.send or by passing it as a parameter to vibe.core.core.runWorkerTask.
Constructors
Name | Description |
---|---|
this
(other)
|
Properties
Name | Type | Description |
---|---|---|
fiber [get]
|
inout(core | |
running [get]
|
bool | Determines if the task is still running or scheduled to be run. |
taskCounter [get]
|
ulong | |
thread [get]
|
inout(core | |
tid [get]
|
std | Gets the Tid associated with this task for use with
std .
|
Methods
Name | Description |
---|---|
getDebugID
(dst)
|
|
getDebugID
()
|
|
getThis
()
|
Returns the Task instance belonging to the calling task. |
interrupt
()
|
|
join
()
|
|
joinUninterruptible
()
|
|
opCast
()
|
|
opCast
()
|
|
opEquals
(other)
|
|
opEquals
(other)
|
|
opEquals
(other)
|
|
toString
()
|