AcquisitionOptions class final

Limits waiting for a connection, including establishment and initialization. Cancellation after acquisition does not cancel the session callback.

Constructors

AcquisitionOptions({Duration? timeout, CancellationToken? cancellation})
Creates connection-wait controls independent of statement deadlines.
const

Properties

cancellation CancellationToken?
Cancellation request observed only while waiting for acquisition.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
Optional positive deadline for obtaining a usable connection lease.
final

Methods

check() → void
Rejects an invalid deadline or cancellation already requested.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited