Skip to content

Commit

Permalink
Update Bootstrap.swift
Browse files Browse the repository at this point in the history
@tayloraswift I needed to undo the ``Sendable`` and ``EventLoop`` because they're in different modules :|
  • Loading branch information
weissi authored Sep 22, 2023
1 parent becd298 commit d83cc39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/NIOPosix/Bootstrap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d83cc39

Please sign in to comment.