Like of but only requires an Async
constraint in exchange for the various
acquire effects being uncancelable.
Like of but only requires an Async
constraint in exchange for the various
acquire effects being uncancelable.
WARN: some Async
data types, like IO
, can be cancelable,
making uncancelable
values unsafe. Such values are only useful
for optimization purposes, in cases where the use case does not
require cancellation or in cases in which an F[_]
data type
that does not support cancellation is used.
Creates a new Semaphore
, initialized with n
available permits.
Creates a new Semaphore
, initialized with n
available permits.
Like in but only requires an Async
constraint in exchange for the various
acquire effects being uncancelable
and initializes state using another effect constructor
(Since version ) see corresponding Javadoc for more information.