From ed99cb4e6f2461e0fa95f4ad002770bd1fa05ff9 Mon Sep 17 00:00:00 2001 From: flywind Date: Sun, 20 Mar 2022 17:28:59 +0800 Subject: [PATCH] [doc] startup events are executed for each thread --- docs/event.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/event.md b/docs/event.md index 02c568280..f347d78e0 100644 --- a/docs/event.md +++ b/docs/event.md @@ -1,6 +1,6 @@ # Event -`Prologue` supports both `startup` and `shutdown` events. `startup` events will be only executed once for each threads. In contrast, `shutdown` events will be executed once after the main loop. +`Prologue` supports both `startup` and `shutdown` events. `startup` events will be only executed once for each thread. In contrast, `shutdown` events will be executed once after the main loop. Let's first look at the structure of `Event`, you can see that `Event` supports both synchronous and asynchronous closure function pointers.