Skip to content

Commit f55ef57

Browse files
authored
Update NNNN-task-start-synchronously-on-caller-context.md
1 parent b41bec5 commit f55ef57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/NNNN-task-start-synchronously-on-caller-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ actor Caplin {
323323
var num: Int = 0
324324

325325
func check() {
326-
Task.startSynchronously {
326+
Task.startSynchronouslyDetached {
327327
num += 1 // could be ok; we know we're synchronously executing on caller
328328

329329
try await Task.sleep(for: .seconds(1))

0 commit comments

Comments
 (0)