Skip to content

Add specs for where Fiber#transfer returns control - #1397

Open
sampokuokkanen wants to merge 1 commit into
ruby:masterfrom
sampokuokkanen:fiber-transfer-return-control
Open

Add specs for where Fiber#transfer returns control#1397
sampokuokkanen wants to merge 1 commit into
ruby:masterfrom
sampokuokkanen:fiber-transfer-return-control

Conversation

@sampokuokkanen

Copy link
Copy Markdown
Contributor

A Fiber entered by Fiber#transfer has no resumer, so when it finishes or is killed, control goes to the innermost Fiber reachable from the root Fiber by following resumes, which is not necessarily the Fiber that transferred. Also covers a transferring Fiber that was itself entered by Fiber#raise.

A Fiber entered by Fiber#transfer has no resumer, so when it finishes or
is killed, control goes to the innermost Fiber reachable from the root
Fiber by following resumes, which is not necessarily the Fiber that
transferred. Also covers a transferring Fiber that was itself entered by
Fiber#raise.
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