Task

Represents a single task as started using vibe.core.runTask.

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

this
this(Task other)
Undocumented in source.

Members

Functions

getDebugID
string getDebugID()
Undocumented in source. Be warned that the author may not have intended to support it.
getDebugID
void getDebugID(R dst)
Undocumented in source. Be warned that the author may not have intended to support it.
interrupt
void interrupt()
Undocumented in source. Be warned that the author may not have intended to support it.
join
void join()
Undocumented in source. Be warned that the author may not have intended to support it.
joinUninterruptible
void joinUninterruptible()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
T opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Task other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Task other)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

basePriority
enum basePriority;
Undocumented in source.

Properties

fiber
inout(Fiber) fiber [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
running
bool running [@property getter]

Determines if the task is still running or scheduled to be run.

taskCounter
size_t taskCounter [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
taskFiber
inout(TaskFiber) taskFiber [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
thread
inout(Thread) thread [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
tid
Tid tid [@property getter]
const(Tid) tid [@property getter]

Gets the Tid associated with this task for use with std.concurrency.

tidInfo
ThreadInfo tidInfo [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
tidInfo
const(ThreadInfo) tidInfo [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getThis
Task getThis()

Returns the Task instance belonging to the calling task.

Meta