Skip to content

Commit 43cf962

Browse files
authored
Revise sentence regarding async (#102)
Current sentence is confusing, so I fixed it.
1 parent 6c2019d commit 43cf962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/development/extensions/async.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hide_table_of_contents: true
66

77
import {ExtensionCode} from './utils.js';
88

9-
Sometimes you will want your extension to wait for an "asynchronous" or "async" operation to complete before resuming instead of for your block to complete (almost) immediately. A common example of this is making a request: no matter how fast your internet is, any network request is not going to be instant.
9+
Sometimes you will want your extension to wait for an "asynchronous" or "async" operation to complete before resuming execution (versus resuming execution early and potentially causing problems). A common example of this is making a request: no matter how fast your internet is, any network request is not going to be instant.
1010

1111
Modern JavaScript has a cool utility for dealing with these: [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). These are how your block can inform Scratch that your block is waiting for an async operation to complete, and the eventual value.
1212

0 commit comments

Comments
 (0)