uncancelable
will have cancel
wait for the effect
local scores
0ms: good: Sleep completed
7ms: good: Cancel completed
0ms: good alt: Sleep completed
1ms: good alt: Cancel completed
0ms: bad: Cancel completed
5003ms: bad: Sleep completed
(low diff means cancel kept waiting)
uncancelable
would be to... stop overriding the default :D
val
, or something else?
value
as a referentially transparent expression. Applying pure
to a value yields another value (another referentially transparent expression). Applying pure
to a non-value yields a non-value. delay
is magic because you can apply it to a non-value and get a value out
Sync[F].pure(logger.info(“…"))
is used, the logger will only be called once, right?
def
or val
, normal parameters vs by-name, etc
a
a value? or the literal expression you wrote?
def x = Random.nextInt
vs val b = Random.nextInt
when you see x + x
vs b + b