Skip to content

Conversation

@lucasmazza
Copy link
Contributor

When using an async block, the capture methods would return the block returned value when called or the Event object when async isn't defined, which could possibly break any client code that would always expect the event object instead of a ActiveJob::Base instance or a Sidekiq job, for instance.

…k returns.

When using an `async` block, the capture methods would return the block returned
value when called or the `Event` object when async isn't defined, which could
possibly break any client code that would always expect the event object instead
of a `ActiveJob::Base` instance or a `Sidekiq` job, for instance.
@nateberkopec
Copy link
Contributor

👍 for always returning the same type!

nateberkopec added a commit that referenced this pull request Jun 5, 2015
Always return the `Event` object, regardless of what the `async` block returns.
@nateberkopec nateberkopec merged commit 1217a2d into getsentry:master Jun 5, 2015
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