Async and Await are the two keywords that help us to program asynchronously.
An async keyword is a method that performs asynchronous tasks such as fetching data from a database, reading a file, etc, they can be marked as “async”.
The await keyword waits for the async method until it returns a value. So the main application thread stops there until it receives a return value.
No comments:
Post a Comment