Modify rule S4822: Avoid repetitive usage of 'await' (#3135)
This commit is contained in:
parent
9372724e74
commit
ba9ed3e319
@ -24,7 +24,7 @@ function foo() {
|
||||
}
|
||||
----
|
||||
|
||||
Alternatively, wait for the Promise fulfillment value using ``++await++``. `await` is used to unwrap promises. `await` pauses the execution of its surrounding `async` function until the promise is settled (that is, fulfilled or rejected). Any errors that occur within the Promise will be thrown as exceptions.
|
||||
Alternatively, wait for the Promise fulfillment value using ``++await++``. It is used to unwrap promises and pauses the execution of its surrounding `async` function until the promise is settled (that is, fulfilled or rejected). Any errors that occur within the Promise will be thrown as exceptions.
|
||||
|
||||
[source,javascript,diff-id=1,diff-type=compliant]
|
||||
----
|
||||
|
Loading…
x
Reference in New Issue
Block a user