takeOrNull method
Takes the value out of this OnceCell, moving it back to an uninitialized state. Returns null if the cell is empty.
Implementation
@override
T? takeOrNull() {
return take().v;
}
Takes the value out of this OnceCell, moving it back to an uninitialized state. Returns null if the cell is empty.
@override
T? takeOrNull() {
return take().v;
}