1 line
No EOL
7.1 KiB
XML
1 line
No EOL
7.1 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="659" height="350" viewBox="0 0 659 350"><defs><style>@import url(https://fonts.googleapis.com/css?family=Open+Sans:bold,italic,bolditalic%7CPT+Mono);@font-face{font-family:'PT Mono';font-weight:700;font-style:normal;src:local('PT MonoBold'),url(/font/PTMonoBold.woff2) format('woff2'),url(/font/PTMonoBold.woff) format('woff'),url(/font/PTMonoBold.ttf) format('truetype')}</style></defs><g id="promise" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="promise-handler-variants.svg"><path id="Line-Copy" fill="#EE6B47" fill-rule="nonzero" d="M525.95 220.367l-39.554-30.598 1.835-2.373 39.554 30.598 4.895-6.328 9.215 19.14-20.84-4.112 4.894-6.327z"/><path id="Line-Copy-3" fill="#EE6B47" fill-rule="nonzero" d="M342 216v-28h3v28h8l-9.5 19-9.5-19h8z"/><path id="Line-Copy-2" fill="#EE6B47" fill-rule="nonzero" d="M173.215 217.994l39.554-30.598 1.835 2.373-39.553 30.598 4.894 6.327-20.84 4.112 9.215-19.14 4.895 6.328z"/><text id="return-value" fill="#8A704D" font-family="PTMono-Regular, PT Mono" font-size="13" font-weight="normal"><tspan x="128" y="173">return value</tspan></text><text id="return-promise" fill="#8A704D" font-family="PTMono-Regular, PT Mono" font-size="13" font-weight="normal"><tspan x="447" y="173">return promise</tspan></text><text id="throw-error" fill="#8A704D" font-family="PTMono-Regular, PT Mono" font-size="13" font-weight="normal"><tspan x="301" y="173">throw error</tspan></text><path id="Rectangle-1-Copy" fill="#FFF9EB" stroke="#7ED321" stroke-width="2" d="M20 264h178v64H20z"/><text id="state:-"fulfilled"-r" fill="#417505" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="35" y="288">state: "fulfilled"</tspan> <tspan x="35" y="308">result: value</tspan></text><path id="Rectangle-1-Copy-3" fill="#FCDFE1" stroke="#C74A6C" stroke-width="2" d="M255 264h178v64H255z"/><text id="state:-"rejected"-re" fill="#727155" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="268" y="288">state: "rejected"</tspan> <tspan x="268" y="308">result: error</tspan></text><g id="noun_88566_cc-copy" fill="#9B9B9B" transform="translate(562 258)"><path id="Shape" d="M22.79 35.592c0-.623-.016-1.362-.124-2.127a8.177 8.177 0 00-.54-1.99 8.223 8.223 0 00-.51-1.017c-.281-.479-1.7-2.14-5.061-5.927-.305-.343-.522-.588-.602-.68l-.251-.29a9.726 9.726 0 01-.324-.394 5.058 5.058 0 01-.092-.127 2.775 2.775 0 01-.253-.413 1.28 1.28 0 01-.126-.365 3.533 3.533 0 01-.013-.478v-.055c.003-.193.007-.363.037-.491a1.13 1.13 0 01.159-.339c.112-.176.234-.362.363-.524.124-.155.255-.306.395-.466l.105-.12c.08-.093.297-.337.6-.679 3.362-3.788 4.781-5.45 5.063-5.93.201-.342.373-.684.51-1.017.262-.632.444-1.301.54-1.99.108-.765.123-1.505.124-2.127.002-1.015.001-2.61 0-3.735.026-.11.043-.223.043-.339 0-2.451-5.837-3.774-11.328-3.774C6.013.198.176 1.52.176 3.972c0 .113.017.223.041.331 0 1.126-.002 2.726 0 3.743.001.585.016 1.356.124 2.127.097.69.279 1.359.54 1.99.138.334.31.676.51 1.017.282.48 1.702 2.142 5.064 5.93.303.342.52.586.6.678l.1.115c.141.162.275.315.4.472.128.161.25.347.363.524.086.135.136.242.159.339.03.128.034.291.037.49v.054c.003.177.005.344-.013.48a1.27 1.27 0 01-.126.364c-.057.12-.135.247-.253.414a5.104 5.104 0 01-.248.322c-.055.067-.112.133-.167.197l-.168.19c-5.322 5.985-5.643 6.53-5.748 6.71-.2.34-.372.682-.51 1.016-.261.631-.443 1.3-.54 1.99-.108.771-.123 1.542-.124 2.127-.002 1.121 0 2.953 0 4.074 0 2.881 5.851 4.194 11.288 4.194 5.436 0 11.287-1.313 11.287-4.194l-.001-.556v-3.518zm-1.534 4.073v.03c-.084.768-3.4 2.487-9.751 2.487-6.435 0-9.753-1.764-9.753-2.517-.001-1.12-.003-2.95 0-4.07 0-.559.014-1.22.106-1.876.075-.538.217-1.06.42-1.552.108-.26.244-.53.403-.8.09-.148.755-1.047 5.558-6.45l.183-.205a11.968 11.968 0 00.39-.477l.122-.166c.11-.156.272-.394.403-.67a2.98 2.98 0 00.282-.898c.035-.267.032-.52.03-.744l-.002-.052a3.98 3.98 0 00-.084-.883 2.832 2.832 0 00-.387-.882 7.688 7.688 0 00-.465-.667c-.147-.185-.3-.36-.446-.527l-.097-.112c-.082-.095-.303-.344-.612-.692-3.018-3.4-4.658-5.309-4.874-5.67a6.52 6.52 0 01-.404-.801 6.383 6.383 0 01-.42-1.552c-.092-.657-.106-1.317-.107-1.877v-2.08c2.105 1.169 6.008 1.784 9.753 1.784 3.744 0 7.647-.615 9.753-1.783l-.001 2.08c-.001.56-.015 1.22-.107 1.876a6.372 6.372 0 01-.42 1.552c-.108.26-.243.529-.403.801-.217.361-1.857 2.27-4.875 5.67-.31.348-.53.597-.612.692l-.102.117c-.145.166-.295.339-.442.522a7.74 7.74 0 00-.464.667c-.192.3-.319.589-.387.883a3.969 3.969 0 00-.085.883v.054c-.003.222-.007.474.028.74.049.37.177.674.283.898.13.277.292.515.403.672a7.37 7.37 0 00.511.641l.255.293c.082.095.304.344.614.694 3.017 3.4 4.656 5.306 4.872 5.667.16.273.296.543.404.801.203.493.345 1.015.42 1.553.092.656.105 1.316.107 1.876.002 1.12 0 2.95 0 4.07z"/><path id="Shape" d="M19.628 36.874a9.407 9.407 0 00-.207-.248A9.837 9.837 0 0018.4 35.57a7.998 7.998 0 00-1.168-.828 15.982 15.982 0 00-2.672-1.24c-.227-.082-.453-.163-.678-.25-.24-.093-.484-.177-.712-.301a2.65 2.65 0 01-.508-.36 3.594 3.594 0 01-.696-.877c-.204-.355-.399-.764-.462-1.18-.064.417-.259.825-.463 1.18-.19.33-.421.628-.696.877-.155.14-.327.261-.507.36-.228.124-.473.208-.712.3-.225.088-.452.17-.678.251a16.014 16.014 0 00-2.672 1.24 8 8 0 00-1.168.828c-.37.319-.7.683-1.021 1.057a9.445 9.445 0 00-.434.545c-.085.116-.163.24-.218.377 0 1.508 3.834 2.731 8.564 2.731s8.563-1.223 8.563-2.731h.01a1.704 1.704 0 00-.217-.377c-.074-.1-.15-.2-.227-.297zM10.492 18.391c.11.105.214.234.308.385.167.266.308.585.423.937a5.7 5.7 0 01.28 1.262 5.7 5.7 0 01.281-1.262c.115-.352.256-.671.423-.937.094-.15.198-.28.308-.385.138-.133.286-.223.432-.322.136-.093.274-.18.411-.268.28-.178.557-.372.829-.596.269-.223.535-.46.793-.729.248-.258.487-.548.709-.885.224-.34.424-.73.62-1.13a12.019 12.019 0 00.262-.582c.052-.124.1-.257.133-.403 0-1.612-2.327-2.919-5.197-2.919s-5.198 1.307-5.198 2.919h-.006c.033.147.08.279.132.403a9.943 9.943 0 00.263.582c.195.4.396.79.62 1.13.221.337.46.627.709.885.258.269.524.507.793.729.271.224.548.418.829.596.137.088.274.175.41.268.147.1.295.188.433.322z"/></g><text id="...with-the-result-o" fill="#8A704D" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="494" y="323">...with the result</tspan> <tspan x="494" y="338">of the new promise...</tspan></text><path id="Rectangle-1-Copy-2" fill="#FFF9EB" stroke="#E8C48E" stroke-width="2" d="M248 34h191v64H248z"/><text id="state:-"pending"-res" fill="#8A704D" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="272" y="58">state: "pending"</tspan> <tspan x="272" y="78">result: undefined</tspan></text><text id="the-call-of-.then(ha" fill="#8A704D" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="125" y="15">the call of .then(handler) always returns a promise:</tspan></text><text id="if-handler-ends-with" fill="#EE6B47" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="255" y="132">if handler ends with…</tspan></text><text id="that-promise-settles" fill="#EE6B47" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="234" y="252">that promise settles with:</tspan></text></g></g></svg> |