namespace: ashet.overlapped
Types
System Calls
syscall await_completion(in completed: []*ARC, in options: Await_Options, out completed_count: usize)Awaits one or more scheduled asynchronous operations and returns the number of
await_completion.completedelements.The kernel will fill out
await_completion.completedup to the returned number of elements. All other values are undefined.syscall await_completion_of(in events: []?*ARC, out completed_count: usize)Awaits one or more explicit asynchronous operations and returns the number of
await_completion_of.eventselements.The kernel will only await elements provided in
await_completion_of.eventsand all of those events must not be awaited by anotherawait_completion_of.When the function returns,
await_completion_of.eventswill have all completed events unchanged, and all unfinished events set tonull. This way, a simple check via index can be done instead of the need for iteration ofawait_completion_of.eventsto find what was finished.