Skip to content

WiP: first test to try to resolve #507#508

Draft
FCO wants to merge 1 commit intomasterfrom
awaitable-transactions
Draft

WiP: first test to try to resolve #507#508
FCO wants to merge 1 commit intomasterfrom
awaitable-transactions

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.

1 participant