Skip to content

Commit 8180976

Browse files
Update src/data/markdown/docs/02 javascript api/07 k6-experimental/02 redis.md
Co-authored-by: Matt Dodson <[email protected]>
1 parent e298e40 commit 8180976

File tree

1 file changed

+2
-1
lines changed
  • src/data/markdown/docs/02 javascript api/07 k6-experimental

1 file changed

+2
-1
lines changed

src/data/markdown/docs/02 javascript api/07 k6-experimental/02 redis.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ which operate in a synchronous manner,
2727
the Redis `Client` operates in an asynchronous manner.
2828
In practice, this means that using the Redis `Client`'s methods won't block test execution,
2929
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

Comments
 (0)