getify/asynquence

improve `wrap(..)`

Open

#108 建立於 2018年5月23日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (156 fork)batch import
help wanted

倉庫指標

Star
 (1,739 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Take a trick from Node's promisify(..) utility... if asked to promisify a function that has a special symbol on it, the function at that symbol is returned, instead of creating a new one. Allows overriding the behavior of wrap not with the config params, but with meta data on the function being wrapped. Clever and useful.

貢獻者指南