Instance Methodswift-mongodb 0.27.0MongoExecutor
request(sections:deadline:)
Sends the given command document over this connection, unchanged, and awaits its message-response.
MongoExecutor.swift:25func request(sections: Mongo.WireMessage.Sections, deadline: ContinuousClock.Instant) async throws -> Mongo.WireMessage
If the task the caller of this function is running on gets cancelled, this function will close channel
and return failure. This function does not check for cancellation before sending the request; it is the responsibility of the caller to check for cancellation.
If the deadline passes without a reply from the server, this function will close channel
and throw a Mongo.WireTimeoutError
. This function does not check if the deadline has already passed before sending the request; it is the responsibility of the caller to check if the deadline is sensible.
Other members in extension
Instance members
func close(
) async Closes this channel, returning when the channel has been closed.
func crosscancel(throwing: any Error
) Interrupts this channel, forcing it to close (asynchronously), but returning without waiting for the channel to complete its shutdown procedure.