You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ struct Example: View {
45
45
}
46
46
```
47
47
48
+
Note that `enter` will always throw if the task is cancelled, so you don't need to manually check for cancellation (e.g. `Task.checkCancellation` / `Task.isCancelled`) if you are using `Gate` entry like in the above example.
49
+
48
50
## Thanks to…
49
51
50
52
This was inspired by (and based in part on) [Gwendal Roué](https://github.com/groue)'s [`Semaphore`](https://github.com/groue/Semaphore) package.
0 commit comments