mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: This ensures that the client's context information will be propagated into the promise which is implicitly created by thenIfError(). Without this, if that promise leaked the client would only see information about where it was allocated inside of NIO, which is not helpful. Modifications: Propagate #file/#line. Result: Client's will see a #file/#line in their code, rather than something like: ``` Fatal error: leaking promise created at (file: ".../.build/checkouts/swift-nio.git-bla/Sources/NIO/EventLoopFuture.swift", line: 583) ```