Skip to content

Fix #991: Local and TaskRunLoop#993

Merged
alexandru merged 5 commits into
monix:masterfrom
alexandru:issue-991
Aug 29, 2019
Merged

Fix #991: Local and TaskRunLoop#993
alexandru merged 5 commits into
monix:masterfrom
alexandru:issue-991

Conversation

@alexandru
Copy link
Copy Markdown
Member

@alexandru alexandru commented Aug 27, 2019

See #991 for details.

@alexandru
Copy link
Copy Markdown
Member Author

Released hash version for testing: 3.0.0-RC4-99273a4

@alexandru alexandru changed the title [WIP] Fix #991: Local and TaskRunLoop Fix #991: Local and TaskRunLoop Aug 28, 2019
// Transporting the current context if localContextPropagation == true.
Local.bind(savedLocals) {
var prevLocals: Local.Context = null
if (savedLocals != null) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is it needed if there is already a null check in Local.bind? Or is it just to inline?

Copy link
Copy Markdown
Member Author

@alexandru alexandru Aug 29, 2019

Choose a reason for hiding this comment

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

I'm doing this for inlining, since Local.bind is no longer a macro and I don't want to have the penalty of that call in case locals are not enabled.

@alexandru alexandru merged commit 1917be4 into monix:master Aug 29, 2019
mdedetrich pushed a commit to mdedetrich/monix that referenced this pull request Mar 28, 2020
* Fix Local and TaskRunLoop

* Add comment

* Add reproducible test suite

* Fix test name

* Formatting
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