getify/asynquence

improve `wrap(..)`

Open

#108 ouverte le 23 mai 2018

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (156 forks)batch import
help wanted

Métriques du dépôt

Stars
 (1 739 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur