Thread.this

Create a suspended thread.

struct Thread
nothrow @nogc
this
(
ThreadDelegate callback
,
size_t stackSize = 0
)

Parameters

callback ThreadDelegate

The delegate that will be called by the thread.

stackSize size_t

The thread stack size in bytes. 0 for default size.

Warning: It is STRONGLY ADVISED to pass a class member delegate (not a struct member delegate) to have context. Passing struct method delegates are currently UNSUPPORTED.

Meta