aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-08-06 20:35:18 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-08-06 20:35:18 +0200
commit35a3733228357b114ff05e2a17a92321893433de (patch)
tree436dea87b38e4f45a1bc30d9eeb0b333b142ad53
parent5c766eaae730785029a3904c53a2660af900f949 (diff)
downloadlua_async-35a3733228357b114ff05e2a17a92321893433de.tar.xz
Fix some small mistakes in the documentation of clearImmediate
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 7e1d3ed..6c1218a 100644
--- a/README.md
+++ b/README.md
@@ -55,4 +55,4 @@ Immediates are processed every step after timeouts and intervals have been proce
Registers a new interval that will execute once in the current or the next step, depending on when it is registered. If an immediate is registered while immediates are processing, it will be executed in the next step. However, if an interval is registered by a timeout or interval callback, the immediate _will_ process in the same step in which it was registered. `...` are the arguments passed to the `callback` function that is called when the immediate executes. `setImmediate` returns an unique numeric immediate ID that can be passed to `clearImmediate`. If `callback` is not a function, an error is raised when the immediate is executed.
#### `clearImmediate(id)`
-This function takes an ID of an existing interval and cancels it, meaning it will not execute. If `id` is not numeric, not a valid immediate id or the associated interval has already executed or been cleared, `clearImmediate` does nothing. `id` may however not be `nil`. `clearImmediate` may be called on any immediate at any time, if immediates are currently processing the cleared immediate is removed from the list of immediates to process.
+This function takes an ID of an existing immediate and cancels it, meaning it will not execute. If `id` is not numeric, not a valid immediate id or the associated immediate has already executed or been cleared, `clearImmediate` does nothing. `id` may however not be `nil`. `clearImmediate` may be called on any immediate at any time, if immediates are currently processing the cleared immediate is removed from the list of immediates to process.