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

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.
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.
terminate
void terminate()
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.

Properties

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

Reserved for internal use!

running
bool running [@property getter]

Determines if the task is still running.

taskCounter
size_t taskCounter [@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]
Undocumented in source. Be warned that the author may not have intended to support it.
tidInfo
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