A recurring, successively signaled parametric event
with a payload
allowing a simple mechanism to coordinate between concurrent tasks:
Await
suspends tasks to wait on thisevent
,- another task
Signal
s thisevent
and resumes the suspended tasks in FIFO order.
Verse using statement |
using { /Verse.org/Verse } |
event<public>(t:any)<diverges>:event(t)
This function is a parametric type, meaning it returns a class or interface rather than a value or object instance.
Parameters
event
takes the following parameters:
Name | Type | Description |
---|---|---|
t |
any |
Generated Class
event
returns the parametric class event(t)
.
Attributes and Effects
The following attributes and effects determine how event
behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute | Meaning |
---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
Effect | Meaning |
---|---|
diverges |
Indicates that calls to the function may not complete. |