getify/asynquence

improve `wrap(..)`

Open

#108 aberto em 23 de mai. de 2018

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (156 forks)batch import
help wanted

Métricas do repositório

Stars
 (1.739 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador