PrismCore / API reference / Loopback server
Structure
PendingResult
struct PendingResultDeclared in Sources/PrismCore/Loopback/SegmentProvider.swift · PrismCore 3.5.4
A ProviderResult that hasn't landed yet: an awaitable that eventually yields the terminal answer.
It is a box rather than a bare Task so a provider can hand over whatever it already has — a detached production task, a continuation, an AsyncStream drain — without the server caring which.
Initializers
init(_ work: @escaping @Sendable () async -> ProviderResult)No documentation comment in the source.
init(task: Task<ProviderResult, Never>)Convenience for the common case: the payload is already being produced by a task somebody else owns.
Generated from the public symbols of PrismCore 3.5.4. All types