Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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

awaitConcurrent

Public Function
std.Io.Batch.awaitConcurrent
pub fn awaitConcurrent(batch: *Batch, io: Io, timeout: Timeout) AwaitConcurrentError!void

Waits for at least one of the submitted operations to complete. After this function returns the completed operations can be iterated with next.

Unlike awaitAsync, this function requires the implementation to perform the operations concurrently and therefore can fail with error.ConcurrencyUnavailable.

Params

File

Io.zig:693
693
694
695
    pub fn awaitConcurrent(batch: *Batch, io: Io, timeout: Timeout) AwaitConcurrentError!void {
        return io.vtable.batchAwaitConcurrent(io.userdata, batch, timeout);
    }