Benx Blog

九月 21, 2014

Diigo Diary 09/21/2014

Filed under: Diigo Diary — benxshen @ 8:30 上午
      • The Promise object is used for deferred and asynchronous computations. A Promise is in one of the three states:

         

           

        • pending: initial state, not fulfilled or rejected.
        •  

        • fulfilled: successful operation
        •  

        • rejected: failed operation.
    • The Promise interface represents a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers to an asynchronous action’s eventual success or failure. This lets asynchronous methods return values like synchronous methods: instead of the final value, the asynchronous method returns a promise of having a value at some point in the future.

       

  • tags: book git publishing markdown

Posted from Diigo. The rest of my favorite links are here.

發表迴響 »

仍無迴響。

RSS feed for comments on this post. TrackBack URI

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

在 WordPress.com 建立免費網站或網誌.

%d 位部落客按了讚: