Resource that is owned.
Resource, and exposes a method that may be used to transfer
this ownership to the specified recipient thread.
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: A new resource instance that is exactly the same as this resource.The drop object that knows how to dispose of the state represented by this drop)Resource.Transfer the ownership of the resource, to the calling thread. |
| transferOwnership | back to summary |
|---|---|
| public T transferOwnership(Drop<T> drop) Transfer the ownership of the resource, to the calling thread. The resource instance is invalidated but without disposing of its internal state. Then a new resource instance with the given owner is produced in its stead.
This method is called by | |