タグ

Javascriptとpromiseに関するbraitomのブックマーク (2)

  • Callback を撲滅せよ

    ヤフー株式会社は、2023年10月1日にLINEヤフー株式会社になりました。LINEヤフー株式会社の新しいブログはこちらです。LINEヤフー Tech Blog こんにちは。言語サポート(Node.js)チームの伊藤(@koh110)です。 Node.js v10 も10月にLTSとなり async/await によるフロー制御は当たり前のように利用されるようになってきました。JavaScriptの非同期処理は async/await から覚える人も今後増えていくでしょう。今回はそんな非同期処理について、社内での事例を交えて記事を書いていこうと思います。 index Promise 化がなぜ重要なのか ユーザーに promisify をさせる落とし穴 Road to Promise まとめ Promise 化がなぜ重要なのか ちょうど3年前のアドベントカレンダーで、今後はいろいろなモジュー

    Callback を撲滅せよ
    braitom
    braitom 2019/01/18
    callbackのインターフェイスしか提供されていないJavaScriptライブラリにPromiseのインターフェイスを追加する実装パターンについて。
  • Window: unhandledrejection event - Web APIs | MDN

    HTML DOM APIWindowInstance propertiescachesclosedconsolecookieStore Experimental credentialless Experimental crossOriginIsolatedcryptocustomElementsdevicePixelRatiodocumentdocumentPictureInPicture Experimental event Deprecated external Deprecated fence Experimental frameElementframesfullScreen Non-standard historyindexedDBinnerHeightinnerWidthisSecureContextlaunchQueue Experimental lengthlocalStor

    Window: unhandledrejection event - Web APIs | MDN
    braitom
    braitom 2018/03/11
    “The unhandledrejection event is fired when a JavaScript Promise is rejected but there is no rejection handler to deal with the rejection.”
  • 1