Skip to content

Commit bd0b511

Browse files
authored
Update README.md
1 parent 2c8ca2e commit bd0b511

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@ sequenceDiagram
2222
box Other Thread
2323
participant async_function
2424
end
25-
2625
main->>some_task: operator()
27-
someTask->>other_task: co_await
26+
some_task->>other_task: co_await
2827
other_task->>async_function: co_await
29-
3028
Note over other_task,async_function: The coroutine wait until completion<br/>and continues in the original thread
31-
32-
async_function-->>other_task
33-
other_task-->some_task
34-
some_task-->main
35-
```
29+
async_function-->>other_task:resume()
30+
other_task-->>some_task:resume()
31+
some_task-->>main:future.get()
32+
```

0 commit comments

Comments
 (0)