Documentation

startnew

Function

awaitable@ startnew(CoroutineFunc@ func)

Starts a new yieldable coroutine from the given function. Function should be a declaration of 'void Func()'.

Returns awaitable@
awaitable@ startnew(CoroutineFuncUserdata@ func, ref userdata)

Starts a new yieldable coroutine from the given function which also provides a userdata handle parameter. Function should be a declaration of 'void Func(ref@)'.

CoroutineFuncUserdata@ func

ref userdata

Returns awaitable@
awaitable@ startnew(CoroutineFuncUserdataInt64@ func, const int userdata)

Starts a new yieldable coroutine from the given function which also provides a userdata signed integer. Function should be a declaration of 'void Func(int64)'.

CoroutineFuncUserdataInt64@ func

int userdata

Returns awaitable@
awaitable@ startnew(CoroutineFuncUserdataInt64@ func, const int64 userdata)

Starts a new yieldable coroutine from the given function which also provides a userdata signed integer. Function should be a declaration of 'void Func(int64)'.

CoroutineFuncUserdataInt64@ func

int64 userdata

Returns awaitable@
awaitable@ startnew(CoroutineFuncUserdataUint64@ func, const uint userdata)

Starts a new yieldable coroutine from the given function which also provides a userdata unsigned integer. Function should be a declaration of 'void Func(uint64)'.

CoroutineFuncUserdataUint64@ func

uint userdata

Returns awaitable@
awaitable@ startnew(CoroutineFuncUserdataUint64@ func, const uint64 userdata)

Starts a new yieldable coroutine from the given function which also provides a userdata unsigned integer. Function should be a declaration of 'void Func(uint64)'.

CoroutineFuncUserdataUint64@ func

uint64 userdata

Returns awaitable@
awaitable@ startnew(CoroutineFuncUserdataDouble@ func, const double userdata)

Starts a new yieldable coroutine from the given function which also provides a userdata floating point number. Function should be a declaration of 'void Func(double)'.

CoroutineFuncUserdataDouble@ func

double userdata

Returns awaitable@
awaitable@ startnew(CoroutineFuncUserdataBool@ func, const bool userdata)

Starts a new yieldable coroutine from the given function which also provides a userdata boolean. Function should be a declaration of 'void Func(bool)'.

CoroutineFuncUserdataBool@ func

bool userdata

Returns awaitable@
awaitable@ startnew(CoroutineFuncUserdataString@ func, const string&in userdata)

Starts a new yieldable coroutine from the given function which also provides a userdata string. Function should be a declaration of 'void Func(const string &in)'.

Returns awaitable@