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
Copy file name to clipboardExpand all lines: src/data/markdown/docs/02 javascript api/07 k6-experimental/02 redis.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,4 +27,5 @@ which operate in a synchronous manner,
27
27
the Redis `Client` operates in an asynchronous manner.
28
28
In practice, this means that using the Redis `Client`'s methods won't block test execution,
29
29
and that the test will continue to run even if the Redis `Client` isn't ready to respond to the request.
30
-
The `async/await` syntax can be used to make the code look synchronous while still being asynchronous, and not blocking the test execution.
30
+
The `async` and `await` keywords enable asynchronous, promise-based behavior to be written in a cleaner style, avoiding the need to explicitly configure promise chains
31
+
(for details, refer to the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function)).
0 commit comments