ResourceOperation class final

The distinct resources accepted by one generated call.

Adapters retain during conversion, before business constructors or getters can reenter. They release after the final use, even if later conversion fails. Cleanup exempts its own control to avoid waiting on its own lease.

Implemented types

Constructors

ResourceOperation({ResourceControl? exempt})

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
no setter
isReleased → bool
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachStream(Object target, Future<void> cancel(Object)) → void
Transfers close notification to one stream without strongly rooting it.
fork() → ResourceOperation
Keeps an accepted asynchronous invocation alive independently of its caller. Releasing either scope invalidates it without ending the other scope.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
override
retain(ResourceControl? control) → void
run<R>(R body()) → R
Runs a call and its asynchronous continuations in this operation's scope.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

current → ResourceOperation?
no setter