Skip to content

Reject serialized execution without a task - #1113

Open
OskarEichler wants to merge 1 commit into
ruby-concurrency:masterfrom
OskarEichler:codex/serialized-execution-block
Open

Reject serialized execution without a task#1113
OskarEichler wants to merge 1 commit into
ruby-concurrency:masterfrom
OskarEichler:codex/serialized-execution-block

Conversation

@OskarEichler

Copy link
Copy Markdown

Raises the documented ArgumentError immediately when SerializedExecution post is called without a block, rather than queuing a nil task that fails later.

Verified by focused executor specs and models; the review composite passes 2,796 examples with no failures.

@bensheldon bensheldon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test for this

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