Skip to content
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

consider making ThreadSpecificVariable public #61

Closed
weissi opened this issue Mar 2, 2018 · 3 comments
Closed

consider making ThreadSpecificVariable public #61

weissi opened this issue Mar 2, 2018 · 3 comments
Labels
discussion for things that need discussion enhancement New feature or request
Milestone

Comments

@weissi
Copy link
Member

weissi commented Mar 2, 2018

We should consider making ThreadSpecificVariable public.
Related to #60 (consider having an API to allow attaching metadata to an EventLoop)

@weissi weissi added enhancement New feature or request discussion for things that need discussion labels Mar 2, 2018
@normanmaurer
Copy link
Member

@Lukasa are you cool with this change ? If so I will make it happen

@Lukasa
Copy link
Contributor

Lukasa commented Mar 5, 2018

Yeah, I'm happy enough to do that.

normanmaurer added a commit to normanmaurer/swift-nio that referenced this issue Mar 5, 2018
Motivation:

It's often useful for users to be able to store a thread-specific value (and so also EventLoop specific). We have ThreadSpecificVariable for this which was internal.

Modifications:

Change ThreadSpecificVariable to be public.

Result:

Fixes [apple#61].
Lukasa pushed a commit that referenced this issue Mar 5, 2018
Motivation:

It's often useful for users to be able to store a thread-specific value (and so also EventLoop specific). We have ThreadSpecificVariable for this which was internal.

Modifications:

Change ThreadSpecificVariable to be public.

Result:

Fixes [#61].
@normanmaurer normanmaurer added this to the 1.1.0 milestone Mar 5, 2018
@normanmaurer
Copy link
Member

Was merged...

weissi pushed a commit to weissi/swift-nio that referenced this issue Jun 13, 2020
Motivation:

In certain cases it was possible for preamble to be sent once; this
would lead to frames getting sent more than once which in turn would
break state machines.

Modifications:

- Check the state of the connection before sending preamble.
- Include a test to check.

Result:

More correct implementation
weissi pushed a commit to weissi/swift-nio that referenced this issue Feb 4, 2023
Motivation:

As we bumped the dependency of NIO to 1.12, we can now avoid some
deprecation warnings, as even the low-end of NIO versions we
support will be safe.

While we're here, we can remove the warnings that Swift 5 started
emitting for our visibility specifiers in extensions.

Modifications:

- Replaced changeCapacity with reserveCapacity
- Replaced numThreads with numberOfThreads
- Removed redundant visibility specifiers

Result:

Back to warning free compilation.
rnro pushed a commit to rnro/swift-nio that referenced this issue Oct 3, 2023
weissi pushed a commit to weissi/swift-nio that referenced this issue Feb 3, 2024
Motivation:

Usage of deprecated methods is bad.

Modification:

Fix usage of deprecated methods.

Result:

Fewer warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion for things that need discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants