%% date:: [[2023-02-23]] %% # [[Asynchronicity]] Asynchronous events are those that run outside the usual flow of a program. [^molyneaux] In an automated [[Software Testing]] script, for example, async `wait`s are often used to keep recording time until an element is displayed on the page, but other functions can continue to be executed. In [[JavaScript]], the `async` keyword is often used in conjunction with `await`. `await`, when placed inside an `async` function, makes the script wait until the line with `await` is fulfilled. Together, they give developers more control over the execution flow of a script. ## Related - [[Multithreading]] - [[Parallelism]] - [[Principles of improving work performance]] [^molyneaux]: Molyneaux, I. (2014). _The art of application performance testing, 2nd edition_. O'Reilly Media, Inc.