Package org.reactfx
Interface Guard
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
BiGuard
,CloseableOnceGuard
,MultiGuard
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Details
-
EMPTY_GUARD
-
-
Method Details
-
close
void close()Releases this guard. Does not throw.- Specified by:
close
in interfaceAutoCloseable
-
closeableOnce
-
closeableOnce
-
multi
Returns a guard that is a composition of multiple guards. Itsclose()
method closes the guards in reverse order.- Parameters:
guards
- guards that should be released (in reverse order) when the returned guards is released.
-