diff --git a/1-js/11-async/03-promise-chaining/promise-handler-variants.svg b/1-js/11-async/03-promise-chaining/promise-handler-variants.svg index 98c01fb8..24d0bd2d 100644 --- a/1-js/11-async/03-promise-chaining/promise-handler-variants.svg +++ b/1-js/11-async/03-promise-chaining/promise-handler-variants.svg @@ -6,7 +6,7 @@ - + return value @@ -15,7 +15,7 @@ return promise - throw error + throw error @@ -36,16 +36,16 @@ ...with the result of the new promise... - + - state: "pending" - result: undefined + state: "pending" + result: undefined the call of .then(handler) always returns a promise: - if handler ends with… + if handler ends with… that promise settles with: diff --git a/1-js/11-async/07-microtask-queue/eventLoop.svg b/1-js/11-async/07-microtask-queue/eventLoop.svg deleted file mode 100644 index 22bbcb5a..00000000 --- a/1-js/11-async/07-microtask-queue/eventLoop.svg +++ /dev/null @@ -1,36 +0,0 @@ - - - - eventLoop.svg - Created with sketchtool. - - - - - ... - - - - setTimeout - - - - mousemove - - - - script - - - event - loop - - - macrotask - queue - - - - - - \ No newline at end of file diff --git a/1-js/11-async/07-microtask-queue/promiseQueue.svg b/1-js/11-async/07-microtask-queue/promiseQueue.svg index 0e6d51d5..5d321467 100644 --- a/1-js/11-async/07-microtask-queue/promiseQueue.svg +++ b/1-js/11-async/07-microtask-queue/promiseQueue.svg @@ -1,5 +1,5 @@ - + promiseQueue.svg Created with sketchtool. @@ -22,14 +22,14 @@ "code finished" ); - + - handler enqueued + handler enqueued queued handler runs - + @@ -37,7 +37,7 @@ script execution finished - + \ No newline at end of file diff --git a/figures.sketch b/figures.sketch index 263d4ca2..adc9ace7 100644 Binary files a/figures.sketch and b/figures.sketch differ