Skip to content

Use assertInEventLoop over assert(el.inEventLoop) #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

fabianfett
Copy link
Member

Motivation

@weissi made me aware at multiple instances that el.assertInEventLoop() should be used over assert(el.inEventLoop), since it ensures that the correct behavior is called for NIOTSEventLoops.

Changes

Replace three instances of assert(el.inEventLoop) with el.assertInEventLoop().

@fabianfett fabianfett force-pushed the ff-use-assertInEventLoop branch from 996d710 to 592a851 Compare September 8, 2020 07:42
@Lukasa Lukasa merged commit 2a22156 into swift-server:main Sep 8, 2020
@Lukasa
Copy link
Collaborator

Lukasa commented Sep 8, 2020

Great catch!

@fabianfett fabianfett deleted the ff-use-assertInEventLoop branch September 8, 2020 08:25
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