A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::syntax::Wait Struct Reference

Wait for one subject, the first of several, or all of several. More...

#include <cpp/a11/flow/syntax.h>

Inheritance diagram for a11::flow::syntax::Wait:
[legend]

Public Attributes

bool scope_barrier = false
 
NodePtr subject
 
std::vector< NodePtr > subjects
 
bool race = false
 Whether the first plural subject to finish satisfies the wait.
 
std::optional< absl::Duration > timeout
 
NodePtr deadline
 
NodePtr timeout_expression
 
std::vector< Word > after
 
std::vector< NodePtr > targets
 Destinations for the winning subject's zero-based index.
 
- Public Attributes inherited from a11::flow::syntax::Node
NodeKind kind = NodeKind::kError
 
Location location
 
Location extent
 Full source extent and transparent grouping, for native edits.
 
std::vector< Location > groups
 

Additional Inherited Members

- Public Member Functions inherited from a11::flow::syntax::NodeOf< NodeKind::kWait >
 NodeOf ()
 
- Public Member Functions inherited from a11::flow::syntax::Node
virtual ~Node ()=default
 
- Static Public Attributes inherited from a11::flow::syntax::NodeOf< NodeKind::kWait >
static constexpr NodeKind kNodeKind
 

Detailed Description

Wait for one subject, the first of several, or all of several.

Single waits use subject; plural waits use subjects.

Member Data Documentation

◆ after

std::vector<Word> a11::flow::syntax::Wait::after

◆ deadline

NodePtr a11::flow::syntax::Wait::deadline

◆ race

bool a11::flow::syntax::Wait::race = false

Whether the first plural subject to finish satisfies the wait.

◆ scope_barrier

bool a11::flow::syntax::Wait::scope_barrier = false

◆ subject

NodePtr a11::flow::syntax::Wait::subject

◆ subjects

std::vector<NodePtr> a11::flow::syntax::Wait::subjects

◆ targets

std::vector<NodePtr> a11::flow::syntax::Wait::targets

Destinations for the winning subject's zero-based index.

◆ timeout

std::optional<absl::Duration> a11::flow::syntax::Wait::timeout

◆ timeout_expression

NodePtr a11::flow::syntax::Wait::timeout_expression

The documentation for this struct was generated from the following file: