Skip to content

Self destruct in promise destructor NOT return_X #32

@kammce

Description

@kammce

Currently we have self destruct called after return_value or return_void. This is problematic because we need the promises continuation for final suspend, so self destruct should happen in the destructor which is the last thing to execute when a promise is destroyed. This also adds the benefit of having a destroyed/cancelldd promise unwinds itself on the coroutine stack.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions