en.javascript.info/1-js/11-async/07-microtask-queue/promiseQueue.svg
Ilya Kantor 634c71dc6a minor
2019-07-30 14:53:31 +03:00

43 lines
No EOL
13 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<svg width="430px" height="185px" viewBox="0 0 430 185" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: sketchtool 55.2 (78181) - https://sketchapp.com -->
<title>promiseQueue.svg</title>
<desc>Created with sketchtool.</desc>
<g id="promise" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="promiseQueue.svg">
<text id="promise.then(handler" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal">
<tspan x="12" y="32" fill="#000000">promise</tspan>
<tspan x="70.8" y="32" fill="#9B9B9B">.</tspan>
<tspan x="79.2" y="32" fill="#000000">then</tspan>
<tspan x="112.8" y="32" fill="#9B9B9B">(</tspan>
<tspan x="121.2" y="32" fill="#000000">handler</tspan>
<tspan x="180" y="32" fill="#9B9B9B">);</tspan>
<tspan x="196.8" y="32" fill="#000000"></tspan>
<tspan x="12" y="47" fill="#000000"></tspan>
<tspan x="12" y="62" fill="#9B9B9B">...</tspan>
<tspan x="37.2" y="62" fill="#000000"></tspan>
<tspan x="12" y="77" fill="#000000"></tspan>
<tspan x="12" y="92" fill="#000000">alert</tspan>
<tspan x="54" y="92" fill="#999999">(</tspan>
<tspan x="62.4" y="92" fill="#669900">"code finished"</tspan>
<tspan x="188.4" y="92" fill="#999999">);</tspan>
</text>
<path d="M4.5,112.5 L230.5,112.5" id="Line-2" stroke="#9B9B9B" stroke-linecap="square" stroke-dasharray="4,4"></path>
<text id="handler-enqueued" font-family="OpenSans-Regular, Open Sans" font-size="16" font-weight="normal" fill="#8A704D">
<tspan x="267" y="32">handler enqueued</tspan>
</text>
<text id="queued-handler-runs" font-family="OpenSans-Regular, Open Sans" font-size="16" font-weight="normal" fill="#8A704D">
<tspan x="11" y="153">queued handler runs</tspan>
</text>
<g id="noun_88566_cc-copy" transform="translate(247.000000, 16.000000)" fill="#9B9B9B">
<path d="M13.9738676,19.4552784 C13.9731799,19.1132205 13.9634375,18.7067412 13.8970748,18.2863299 C13.8373599,17.9078261 13.7253801,17.5396876 13.5638861,17.1926142 C13.4787265,17.0093809 13.372592,16.8213549 13.2484629,16.6334405 C13.0742466,16.3701819 12.1974342,15.4565787 10.1208216,13.3751416 C9.93262217,13.1866699 9.79852145,13.0522542 9.74877811,13.0012074 L9.59347344,12.8420486 C9.55851556,12.8061598 9.52390153,12.7699367 9.48986058,12.7330448 C9.45719502,12.6978248 9.42487331,12.6618245 9.39369776,12.6253785 C9.37409842,12.6024186 9.35495755,12.5790129 9.33650438,12.5559415 C9.26337937,12.4643249 9.21512604,12.3941077 9.18016816,12.3285717 C9.13397791,12.2417476 9.10990855,12.1800011 9.10222928,12.1282856 C9.09122615,12.0538332 9.09260154,11.9624394 9.09420616,11.8655843 L9.09466463,11.8350454 C9.09604002,11.7292739 9.0987908,11.6358739 9.11724398,11.5652109 C9.13122713,11.5120465 9.16251729,11.4529749 9.21546988,11.3789683 C9.28481256,11.2821132 9.36011527,11.1801311 9.44000262,11.0908551 C9.51622226,11.0057028 9.59771423,10.9226683 9.68390546,10.8346182 L9.74877811,10.7684134 C9.79852145,10.7174781 9.9321637,10.5835083 10.119217,10.3958167 C12.1969758,8.31337655 13.074132,7.39943901 13.2484629,7.1359575 C13.3724774,6.94826593 13.4786118,6.76024 13.5638861,6.57678376 C13.7253801,6.2297104 13.8374745,5.86168335 13.8970748,5.48329092 C13.9634375,5.06254528 13.9731799,4.65606598 13.9738676,4.31400814 C13.9751283,3.75617186 13.9744406,2.8793491 13.9737529,2.26065796 C13.9894553,2.19991455 14,2.13816804 14,2.07463823 C14,0.727137629 10.3933785,0 7.00005731,0 C3.60662153,0 8.8817842e-16,0.727137629 8.8817842e-16,2.07463823 C8.8817842e-16,2.13683057 0.0102008236,2.19735107 0.025215519,2.25675701 C0.024527823,2.87567106 0.0239547431,3.75494585 0.025100903,4.31400814 C0.025788599,4.63566957 0.0350724946,5.05942452 0.10189362,5.48329092 C0.16172317,5.86212918 0.273817613,6.22993331 0.435196935,6.57700667 C0.520815083,6.76068582 0.626834879,6.94871176 0.750620154,7.1359575 C0.924836468,7.39943901 1.8021073,8.31337655 3.87975145,10.3958167 C4.06703398,10.5835083 4.20056162,10.7174781 4.25041958,10.7685249 L4.31242683,10.8317203 C4.3996496,10.920662 4.48194389,11.0045883 4.55919507,11.0908551 C4.63873857,11.1796853 4.71404128,11.2817788 4.7837278,11.3790797 C4.83668039,11.4529749 4.86785594,11.5120465 4.8818391,11.5650995 C4.90040689,11.6355395 4.90304305,11.7253729 4.90464768,11.834934 L4.90510614,11.8642468 C4.90659615,11.9614363 4.90797154,12.0532759 4.89685379,12.1282856 C4.88928914,12.1798897 4.86521978,12.2416362 4.81902953,12.3283488 C4.78395704,12.3939962 4.7357037,12.4642134 4.66246408,12.556053 C4.64389629,12.5794587 4.6246408,12.60253 4.60549993,12.6251556 C4.57432438,12.6617131 4.54200267,12.6976018 4.50933711,12.7329333 C4.47529616,12.7697137 4.4404529,12.8059369 4.40641195,12.8411569 C4.39838883,12.8494046 4.36182632,12.8857392 4.30245524,12.9453681 C1.01354925,16.2356547 0.815607424,16.535025 0.750620154,16.6334405 C0.626720263,16.8207977 0.520700467,17.0088236 0.435082319,17.1926142 C0.273817613,17.5393532 0.16172317,17.9072688 0.10189362,18.2862185 C0.0350724946,18.7100849 0.025788599,19.1336169 0.025100903,19.4552784 C0.0238401271,20.0717404 0.024757055,21.0786321 0.025330135,21.6947597 C0.025330135,23.2785466 3.6407771,24 7.00005731,24 C10.3592229,24 13.9746699,23.2785466 13.9746699,21.6947597 L13.9740968,21.3890365 C13.9744406,20.7809336 13.9750137,19.9777831 13.9738676,19.4552784 L13.9738676,19.4552784 Z M13.0254202,21.6942024 L13.0254202,21.7108094 C12.973843,22.1328925 10.9253113,23.0778147 7.00005731,23.0778147 C3.02391381,23.0778147 0.973548266,22.1083722 0.973548266,21.6942024 C0.97286057,21.0785206 0.971943642,20.0728549 0.973319034,19.4571731 C0.973892114,19.149778 0.982144465,18.7868779 1.03910862,18.4259841 C1.08575733,18.1300689 1.17320933,17.8429588 1.29882846,17.5727899 C1.36530574,17.430015 1.44920465,17.2816674 1.54765979,17.1327624 C1.60301931,17.0518455 2.01414689,16.5574276 4.98224271,13.5880222 C5.04998076,13.5202571 5.08986713,13.480133 5.09491023,13.4748946 C5.1347966,13.4338788 5.17456835,13.3924173 5.21342317,13.3503985 C5.25514339,13.3053703 5.29617592,13.2596734 5.33594767,13.212862 C5.36173627,13.1826575 5.38695179,13.1520071 5.41147961,13.1212453 C5.47967613,13.0357587 5.57962128,12.9049096 5.66054017,12.752661 C5.72610052,12.6296138 5.80518556,12.4624301 5.83510033,12.2593576 C5.85676275,12.1126818 5.85469967,11.973585 5.85286581,11.8508721 L5.85240735,11.822228 C5.85000041,11.6622889 5.84438423,11.5046904 5.80002784,11.3366151 C5.75761992,11.1753385 5.67945181,11.0167369 5.56128272,10.8518938 C5.4765815,10.7335278 5.38294023,10.6071369 5.27394042,10.4853157 C5.18270608,10.3833336 5.0889502,10.2877046 4.99817433,10.1953077 L4.93800093,10.1337841 C4.88734066,10.0818457 4.75106224,9.94508944 4.55999738,9.75360838 C2.6949659,7.88416027 1.68153127,6.83558412 1.54800363,6.6371928 C1.44920465,6.48761912 1.36530574,6.33938291 1.29882846,6.19660803 C1.17309471,5.92621626 1.08564271,5.63910612 1.038994,5.34330244 C0.982029849,4.9822971 0.973777498,4.61939702 0.973204418,4.31200193 C0.972516722,3.99780804 0.972402106,3.58207791 0.972631338,3.16835398 C2.2736375,3.81078521 4.68573113,4.14916501 6.99994269,4.14916501 C9.31346656,4.14916501 11.7251017,3.81089666 13.0262225,3.16879981 C13.0264517,3.58230082 13.0263371,3.99780804 13.0255348,4.31200193 C13.0248471,4.61973139 13.0167094,4.98296584 12.9597452,5.34341389 C12.9132111,5.63899467 12.8257591,5.92610481 12.6999108,6.19660803 C12.6335481,6.33904854 12.5496492,6.48728475 12.4507356,6.63696989 C12.3170933,6.83558412 11.3036587,7.88416027 9.43874184,9.75360838 C9.24756236,9.94508944 9.11128394,10.0817343 9.06062367,10.1337841 L8.99747026,10.1982056 C8.90784055,10.2897108 8.8150016,10.3843367 8.72445496,10.4854272 C8.6151113,10.6078056 8.52169926,10.7338621 8.43734189,10.8516709 C8.31905818,11.0167369 8.24077546,11.1753385 8.19836754,11.3369495 C8.15401115,11.505805 8.14828035,11.6629577 8.14610265,11.8226738 L8.1457588,11.8520982 C8.14381033,11.9743652 8.14174724,12.1130162 8.16340966,12.2593576 C8.19332444,12.4623187 8.27240947,12.6296138 8.33785521,12.7527725 C8.41888872,12.9047982 8.51883386,13.0357587 8.58737423,13.1218026 C8.61201667,13.1525644 8.63711757,13.1828804 8.66267694,13.2129735 C8.70244869,13.2596734 8.7433666,13.3053703 8.78508682,13.3503985 C8.82405626,13.3924173 8.86382801,13.4338788 8.90302668,13.4744488 L9.06027983,13.6353909 C9.11105471,13.6874408 9.24802083,13.8246429 9.439888,14.0170156 C11.3041172,15.8856835 12.3170933,16.9337024 12.4505064,17.1318708 C12.5496492,17.2820017 12.6335481,17.430238 12.6997961,17.5724556 C12.8256445,17.8430702 12.9129819,18.1301804 12.9596306,18.4258726 C13.0165948,18.7862092 13.0247325,19.1493322 13.0254202,19.4571731 C13.0270248,20.0728549 13.0261079,21.0785206 13.0254202,21.6942024 L13.0254202,21.6942024 Z" id="Shape"></path>
<path d="M12.7145022,19.2533442 C12.6712846,19.210073 12.6267574,19.1681541 12.581754,19.1261312 C12.3755479,18.9340115 12.1631509,18.7473008 11.9262282,18.5838898 C11.6920438,18.4222472 11.4389294,18.2826562 11.1765285,18.1588758 C10.9040079,18.0302066 10.6223199,17.9159958 10.3377745,17.8092742 C10.050848,17.7015124 9.75784962,17.6086251 9.46139859,17.522915 C9.31591138,17.4809961 9.17054322,17.4391812 9.02624658,17.3945578 C8.8724254,17.346814 8.71562781,17.3040629 8.5693072,17.2400924 C8.45346509,17.18954 8.3433377,17.1275458 8.24356824,17.0553579 C8.06736441,16.9278329 7.91854361,16.7746157 7.79686773,16.6054838 C7.66578637,16.4233498 7.54053879,16.2139633 7.49982142,16 C7.4592231,16.2140673 7.33385646,16.4233498 7.20289416,16.6054838 C7.08121827,16.7746157 6.93239748,16.9279369 6.75607459,17.0553579 C6.65642419,17.1275458 6.54605868,17.18954 6.43045469,17.2400924 C6.28413408,17.3040629 6.12733649,17.346814 5.97351531,17.3945578 C5.82921866,17.4392852 5.68373145,17.4809961 5.5383633,17.522915 C5.24179321,17.6086251 4.94891388,17.7015124 4.66174927,17.8092742 C4.37732296,17.9159958 4.09563495,18.0302066 3.82323336,18.1588758 C3.56071347,18.2826562 3.30771812,18.4222472 3.07341465,18.5838898 C2.836611,18.7473008 2.62421396,18.9340115 2.41812691,19.1261312 C2.37312351,19.1680501 2.32859632,19.210073 2.28525971,19.2533442 C2.23549403,19.3031684 2.18691892,19.3538247 2.13965344,19.4054172 C2.08500644,19.465019 2.0348836,19.5287815 2,19.5989931 C2,20.3726726 4.46101977,21 7.49672594,21 C10.5323131,21 12.9933328,20.3727766 12.9933328,19.5989931 L13,19.5989931 C12.9652355,19.5286775 12.9149936,19.465019 12.8603466,19.4054172 C12.812843,19.3538247 12.7642679,19.3031684 12.7145022,19.2533442 L12.7145022,19.2533442 Z" id="Shape"></path>
<path d="M6.41677813,10.5117067 C6.47980311,10.5724295 6.54004601,10.6466982 6.59440372,10.733345 C6.69049275,10.8864366 6.77170831,11.07024 6.8380504,11.2733111 C6.90952865,11.4917966 6.9779038,11.7430957 7.0000535,12 C7.0222032,11.7430957 7.09057835,11.4917966 7.1620566,11.2733111 C7.22839869,11.0703567 7.30972126,10.8864366 7.40570328,10.733345 C7.460168,10.6466982 7.52030389,10.5724295 7.58332887,10.5117067 C7.66315339,10.4348689 7.74875609,10.3834881 7.83253973,10.3262685 C7.91129421,10.2725521 7.99069071,10.2225725 8.0699802,10.1721259 C8.2317693,10.0692474 8.39141833,9.95784434 8.54807126,9.82857476 C8.70322615,9.70047294 8.85699,9.56337946 9.00551067,9.4091201 C9.14868118,9.26046593 9.28671553,9.09301104 9.41447756,8.89904829 C9.54363062,8.70286682 9.65940827,8.47900975 9.77197582,8.24849653 C9.79647959,8.19816664 9.82066235,8.14771997 9.8444171,8.09575524 C9.87159596,8.03608338 9.89813279,7.97524377 9.9237066,7.91335319 C9.95366754,7.8417703 9.9809534,7.76539966 10,7.68108834 C10,6.75261283 8.65764272,6 7.00187256,6 C5.3459954,6 4.00363811,6.75261283 4.00363811,7.68108834 L4,7.68108834 C4.0190466,7.76551644 4.04633246,7.8417703 4.0761864,7.91335319 C4.10176021,7.97536054 4.12840404,8.03608338 4.1554759,8.09575524 C4.17923065,8.1476032 4.20341341,8.19804986 4.22802418,8.24849653 C4.34048473,8.47900975 4.45626237,8.70298359 4.58541544,8.89904829 C4.71317747,9.09301104 4.85121181,9.26046593 4.99438232,9.4091201 C5.14311701,9.56349623 5.29666685,9.70058971 5.45182173,9.82857476 C5.60836766,9.95784434 5.7681237,10.0692474 5.92991279,10.1721259 C6.00930929,10.2225725 6.08849179,10.2725521 6.16724627,10.3262685 C6.25135092,10.3834881 6.33695361,10.4347521 6.41677813,10.5117067 L6.41677813,10.5117067 Z" id="Shape"></path>
</g>
<text id="script-execution-fin" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal" fill="#888888">
<tspan x="11" y="129">script execution finished</tspan>
</text>
<path id="Line-Copy" d="M253.5,113.5 L253.5,54.5 L255.5,54.5 L255.5,113.5 L261.5,113.5 L254.5,127.5 L247.5,113.5 L253.5,113.5 Z" fill="#EE6B47" fill-rule="nonzero"></path>
</g>
</g>
</svg>