Skip to content

Commit

Permalink
Allow send actions that are conditionally executed (#1303)
Browse files Browse the repository at this point in the history
New semantics for worker message passing, which allows send actions to be conditionally executed.
Most of the _Worker message passing_ section is rewritten.
Fixes #1273.
  • Loading branch information
jclark authored May 9, 2024
1 parent 7bec949 commit db9eec4
Show file tree
Hide file tree
Showing 2 changed files with 230 additions and 179 deletions.
3 changes: 3 additions & 0 deletions lang/lib/error.bal
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ public isolated function toString(error e) returns string = external;
# defined in the Ballerina Language Specification, using the expression style.
public isolated function toBalString(error e) returns string = external;

# The type of error for a receive-action when no message has been sent.
public type NoMessage distinct error;

# A type of error which can be retried.
public type Retriable distinct error;

Expand Down
Loading

0 comments on commit db9eec4

Please sign in to comment.