Delays given function for a given given time
- Source:
Parameters:
Name | Type | Description |
---|---|---|
fn |
function | function to be called on timeout |
time |
number | time in ms to delay the function to be called |
Returns:
}}
- Type
- function