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
restore events to method that works with pong (events in a blocking wait are queued but not processed). But still investigating if it is possible to allow events inside a blocking wait.
Copy file name to clipboardExpand all lines: docs/gettingstarted/events.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Using events in C/C++ and WebAssembly with twr-wasm
3
-
description: Certain twr-wasm APIs support events. This section describes how they function.
3
+
description: Certain twr-wasm APIs support events. This section describes how events function.
4
4
---
5
5
6
6
# Overview of Events
@@ -55,7 +55,7 @@ You can use the same event/callback with multiple APIs if you wish. When the ev
55
55
56
56
# When using twrWasmModuleAsync
57
57
58
-
With a `twrWasmModuleAsync` module, various blocking APIs are available. For example: `twr_sleep`. When these functions are blocking (waiting), event callbacks are still processed. For example, in the `tests-timer` example, you can see the repeating timer callback happen while the function sleeps.
58
+
With a `twrWasmModuleAsync` module, various blocking APIs are available. For example: `twr_sleep`. When these functions are blocking (waiting), event callbacks are queued and not processed until wait unblocks.
59
59
60
60
With a `twrWasmModuleAsync` module, events are sent from the JavaScript main thread to the worker thread that is running the C/C++ code.
0 commit comments