Forks
trait Forks
Type members
Types
type HeldFork
A fork that has been successfully picked up and can be used. It represents exclusive access to a fork.
A fork that has been successfully picked up and can be used. It represents exclusive access to a fork.
Value members
Abstract methods
Releases the fork so that it can be acquired by others.
Releases the fork so that it can be acquired by others.
Attempts to pick up a shared fork. If successful, outputs HeldFork on the left. Does not wait for the shared fork to become available. If it is unavailable, outputs SharedFork on the right.
Attempts to pick up a shared fork. If successful, outputs HeldFork on the left. Does not wait for the shared fork to become available. If it is unavailable, outputs SharedFork on the right.