espera / Exports
▸ convertToMilliseconds(num
, unit
): number
Converts to milliseconds another time unit
export
Name | Type | Description |
---|---|---|
num |
number |
The amount |
unit |
Unit |
The unit |
number
The amount in milliseconds
▸ sleep(timeout
, unit
): Promise
<void
>
Stops execution for the desired time
export
Name | Type | Description |
---|---|---|
timeout |
number |
Amount to wait |
unit |
Unit |
Unit of the amount |
Promise
<void
>