asynquence icon indicating copy to clipboard operation
asynquence copied to clipboard

improve `wrap(..)`

Open getify opened this issue 7 years ago • 0 comments

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.

getify avatar May 23 '18 20:05 getify