- assumeIsolated
Isolated!T assumeIsolated(T object)
Unsafe facility to assume that an existing reference is unique.
- async
Future!(StripHeadConst!(ReturnType!CALLABLE)) async(CALLABLE callable, ARGS args)
Starts an asynchronous computation and returns a future for the result value.
- lock
ScopedLock!T lock(shared(T) object)
void lock(shared(T) object, void delegate(scope T) accessor)
Locks the given shared object and returns a ScopedLock for accessing any unshared members.
- makeIsolated
Isolated!T makeIsolated(ARGS args)
Creates a new isolated object.
- makeIsolatedArray
Isolated!(T[]) makeIsolatedArray(size_t size)
Creates a new isolated array.
- prioritySend
void prioritySend(Task task, ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
- prioritySend
void prioritySend(Tid tid, ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
- prioritySendCompat
void prioritySendCompat(Task tid, ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
- receiveCompat
void receiveCompat(OPS ops)
Undocumented in source. Be warned that the author may not have intended to support it.
- receiveOnlyCompat
auto receiveOnlyCompat()
Undocumented in source. Be warned that the author may not have intended to support it.
- receiveTimeoutCompat
bool receiveTimeoutCompat(Duration timeout, OPS ops)
Undocumented in source. Be warned that the author may not have intended to support it.
- send
void send(Task task, ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
- send
void send(Tid tid, ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendCompat
void sendCompat(Task tid, ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
- setConcurrencyPrimitive
void setConcurrencyPrimitive(ConcurrencyPrimitive primitive)
Sets the concurrency primitive to use for śtd.concurrency.spawn().
- setMaxMailboxSizeCompat
void setMaxMailboxSizeCompat(Task tid, size_t messages, OnCrowding on_crowding)
Undocumented in source. Be warned that the author may not have intended to support it.
- setMaxMailboxSizeCompat
void setMaxMailboxSizeCompat(Task tid, size_t messages, bool function(Task) on_crowding)
Undocumented in source. Be warned that the author may not have intended to support it.
Functions and structures for dealing with threads and concurrent access.
This module is modeled after std.concurrency, but provides a fiber-aware alternative to it. All blocking operations will yield the calling fiber instead of blocking it.