getify/asynquence

improve `wrap(..)`

Open

#108 geöffnet am 23. Mai 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.739 Stars) (156 Forks)batch import
help wanted

Beschreibung

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.

Contributor Guide