Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/slackapi/node-slack-sdk
/ delay
Function
delay
packages/web-api/src/helpers.ts:6–10 ·
view source on GitHub ↗
(ms: number, value?: T)
Source
from the content-addressed store, hash-verified
4
* @param value value
for
eventual resolution
5
*/
6
export
function
delay<T>(ms: number, value?: T): Promise<T> {
7
return
new
Promise((resolve) => {
8
setTimeout(() => resolve(value), ms);
9
});
10
}
Callers
1
task
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected