This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function
functionmay be called immediately, before async returns.
When this function returns, it is guaranteed that function has already been called and completed, or it has successfully been assigned a unit of concurrency.
After this is called, await or cancel must be called before the select is deinitialized.
Calls
functionwithargsasynchronously. The resource spawned is owned by the select.functionmust have return type matching thefieldfield ofUnion.functionmay be called immediately, beforeasyncreturns.When this function returns, it is guaranteed that
functionhas already been called and completed, or it has successfully been assigned a unit of concurrency.After this is called,
awaitorcancelmust be called before the select is deinitialized.Threadsafe.
Related:
Io.asyncGroup.async