Update Bootstrap.swift

@tayloraswift I needed to undo the ``Sendable`` and ``EventLoop`` because they're in different modules :|
This commit is contained in:
Johannes Weiss authored and GitHub committed 2023-09-22 15:41:30 +01:00
1 parent becd298f6c
commit d83cc39680
1 file changed
+3 -3
+3 -3
View File
@@ -713,10 +713,10 @@ private extension Channel {
/// A `ClientBootstrap` is an easy way to bootstrap a `SocketChannel` when creating network clients.
///
/// You may re-use a `ClientBootstrap` once you set it up and call `connect` multiple times on it.
/// This ensures all connections you create share the same ``EventLoop``.
/// This ensures all connections you create share the same `EventLoop`.
///
/// Keep in mind that `ClientBoostrap` is not ``Sendable``, so you cannot share the same
/// instance across multiple ``EventLoop``s or multiple concurrency domains in general.
/// Keep in mind that `ClientBoostrap` is not `Sendable`, so you cannot share the same
/// instance across multiple `EventLoop`s or multiple concurrency domains in general.
/// Creating a `ClientBootstrap` is cheap. So instead of arranging synchronization allowing
/// concurrent code to re-use a single `ClientBootstrap` instance across many tasks, it is often
/// easier to create a dedicated instance for each task.