yieldLock

Returns an object that ensures that no task switches happen during its life time.

Any attempt to run the event loop or switching to another task will cause an assertion to be thrown within the scope that defines the lifetime of the returned object.

Multiple yield locks can appear in nested scopes.

@safe nothrow
yieldLock
()

Meta