UNPKG

bottender-compose

Version:

An utility library for bottender and higher-order handlers

14 lines (10 loc) 254 B
"use strict"; const delay = require('delay'); // eslint-disable-next-line no-unused-vars module.exports = ms => { const Fn = () => delay(ms); const name = `Delay(${ms})`; Object.defineProperty(Fn, 'name', { value: name }); return Fn; };