vibe.d beta banner
get vibe.d
0.8.5

Asynchronous I/O that doesn’t get in your way, written in D

Class TaskFiber

The base class for a task aka Fiber.

class TaskFiber
  : core.thread.Fiber ;

This class represents a single task that is executed concurrently with other tasks. Each task is owned by a single thread.

Constructors

NameDescription
this

Fields

NameTypeDescription
m_running shared(bool)
m_taskCounter shared(ulong)

Properties

NameTypeDescription
messageQueue[get] inout(MessageQueue)Reserved for internal use!
task[get] TaskReturns the handle of the current Task running on this fiber.
thread[get] inout(core.thread.Thread)Returns the thread that owns this task.
tidInfo[get] inout(std.concurrency.ThreadInfo)

Methods

NameDescription
bumpTaskCounter
interrupt Throws an InterruptExeption within the task as soon as it calls a blocking function.
join Blocks until the task has ended.
terminate Terminates the task without notice as soon as it calls a blocking function.
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.