fn Locked(comptime T: type) type

Thread-safe async/await lock that protects one piece of data. Functions which are waiting for the lock are suspended, and are resumed when the lock is released, in order.

Parameters

T: type,

Fields

lock: Lock,
private_data: T,

Types

Functions

fn acquire(self: *Self) callconv(.Async) HeldLock

No documentation provided.

fn deinit(self: *Self) void

No documentation provided.

fn init(data: T) Self

No documentation provided.