Skip to content

Commit

Permalink
Make transaction handlers isolated
Browse files Browse the repository at this point in the history
Part of #267
  • Loading branch information
jclark committed Dec 17, 2020
1 parent 58cd4f8 commit deeb0fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/lib/transaction.bal
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public transactional isolated function getData() returns readonly = external;

# Type of a commit handler function.
# + info - information about the transaction being committed
public type CommitHandler function(Info info);
public type CommitHandler isolated function(Info info);

# Type of a rollback handler function.
# + info - information about the transaction being committed
# + cause - an error describing the cause of the rollback, if there is
# + willRetry - true if the transaction will be retried, false otherwise
public type RollbackHandler function(Info info, error? cause, boolean willRetry);
public type RollbackHandler isolated function(Info info, error? cause, boolean willRetry);

# Adds a handler to be called if and when the global transaction commits.
#
Expand Down

0 comments on commit deeb0fb

Please sign in to comment.