You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using NIOTSListenerBootstrap I would expect to be able to provide an async block since the common methods one would call within this have await-able versions. eg channel.pipeline.addHandler.
Swift & OS version (output of swift --version && uname -a)
swift-driver version: 1.26.9 Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
Target: x86_64-apple-macosx12.0
Darwin Matthauss-MacBook-Pro-2.local 21.2.0 Darwin Kernel Version 21.2.0: Wed Oct 20 00:23:27 PDT 2021; root:xnu-8019.60.40.0.1~26/RELEASE_X86_64 x86_64
P.S maybe there is an easy way to create an async task connected to the event loop that returns a EventLoopFuture<Void> but I cant find such a method on the channel.eventloop (more of an issue for SwiftNIO repo through)
The text was updated successfully, but these errors were encountered:
Expected behavior
When using
NIOTSListenerBootstrap
I would expect to be able to provide an async block since the common methods one would call within this have await-able versions. egchannel.pipeline.addHandler
.SwiftNIO version/commit hash
Swift & OS version (output of
swift --version && uname -a
)P.S maybe there is an easy way to create an async task connected to the event loop that returns a
EventLoopFuture<Void>
but I cant find such a method on thechannel.eventloop
(more of an issue for SwiftNIO repo through)The text was updated successfully, but these errors were encountered: