Skip to content

Commit d510702

Browse files
committed
Rename atomically to invulnerable
1 parent 2695f0d commit d510702

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Control/Monad/Aff.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module Control.Monad.Aff
1919
, delay
2020
, never
2121
, finally
22-
, atomically
22+
, invulnerable
2323
, killFiber
2424
, joinFiber
2525
, cancelWith
@@ -262,8 +262,8 @@ finally ∷ ∀ eff a. Aff eff Unit → Aff eff a → Aff eff a
262262
finally fin a = bracket (pure unit) (const fin) (const a)
263263

264264
-- | Runs an effect such that it cannot be killed.
265-
atomically eff a. Aff eff a Aff eff a
266-
atomically a = bracket a (const (pure unit)) pure
265+
invulnerable eff a. Aff eff a Aff eff a
266+
invulnerable a = bracket a (const (pure unit)) pure
267267

268268
-- | Attaches a custom `Canceler` to an action. If the computation is canceled,
269269
-- | then the custom `Canceler` will be run afterwards.

0 commit comments

Comments
 (0)