Skip to content

Commit 06b7ba0

Browse files
authored
Update README.md
1 parent c734138 commit 06b7ba0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

events/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ queue.call_every(400, printf, "called every 0.4 seconds\n");
7575

7676
The call functions return an ID that uniquely represents the event in the
7777
the event queue. You can pass this ID to `EventQueue::cancel` to cancel
78-
an in-flight event.
78+
an in-flight event prior to dispatch.
7979

8080
``` cpp
8181
// The event id uniquely represents the event in the queue
@@ -88,7 +88,7 @@ if (id) {
8888
}
8989

9090
// Events can be cancelled as long as they have not been dispatched. If the
91-
// event has already expired, cancel has no side-effects.
91+
// event has already expired, cancel may have negative side-effects.
9292
queue.cancel(id);
9393
```
9494

@@ -257,7 +257,7 @@ int enet_consume(void *buffer, int size) {
257257
```
258258

259259
Additionally, in-flight events can be cancelled with `equeue_cancel`. Events
260-
are given unique ids on post, allowing safe cancellation of expired events.
260+
are given unique ids on post, allowing safe cancellation until dispatch.
261261

262262
``` c
263263
#include "equeue.h"

0 commit comments

Comments
 (0)