Package io.servicetalk.concurrent.api
Interface Scope
- All Superinterfaces:
AutoCloseable
An abstraction for detaching a context from the current thread.
This abstraction is intended to allow the modifications performed by
CapturedContext.attachContext()
to be undone. In practice, this may look like restoring a ThreadLocal
to the state it had before the call to CapturedContext.attachContext()
.-
Field Summary
Fields -
Method Summary
-
Field Details
-
NOOP
No-opScope
.
-
-
Method Details
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-