Skip to content

Conversation

@FCO
Copy link
Owner

@FCO FCO commented Aug 29, 2021

If red-do :transaction's block returns a Awaitable, it creates
a new Promise that will handle the commit/rollback and does not
let the sync code to call commit/rollback.

Probable next steps are:

  • extract that logic to a transaction manager
  • on transaction manager add a transaction stack and methods
    • queue-begin
    • unqueue-commit
    • break-queue-rollback
      (or something like that)

If `red-do :transaction`'s block returns a Awaitable, it creates
a new Promise that will handle the commit/rollback and does not
let the sync code to call commit/rollback.

Probable next steps are:
- extract that logic to a transaction manager
- on transaction manager add a transaction stack and methods
	- queue-begin
	- unqueue-commit
	- break-queue-rollback
(or something like that)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants