Bool

trait Bool[F[_]] extends AssignableCancelableF[F] with BooleanCancelableF[F]

Represents AssignableCancelableF instances that are also BooleanCancelableF.

Represents AssignableCancelableF instances that are also BooleanCancelableF.

trait CancelableF[F]
class Object
trait Matchable
class Any

Value members

Inherited methods

def cancel: CancelToken[F]
Inherited from
CancelableF
def isCanceled: F[Boolean]
Returns

true in case this cancelable hasn't been canceled, or false otherwise.

Inherited from
BooleanCancelableF
def set(cancelable: CancelableF[F]): F[Unit]

Sets the underlying reference to the given CancelableF reference.

Sets the underlying reference to the given CancelableF reference.

Contract:

  • the given reference gets canceled in case the assignable was already canceled
  • this operation might throw an error if the contract of the implementation doesn't allow for calling set multiple times (e.g. SingleAssignCancelableF)
Inherited from
AssignableCancelableF