Await

A small module containing a simple time based await for function callback

Shared Module - This can be used by both clients and the server

lib.await

Used to add a timed delay to the defined callback

lib.await(func, timeout)
Parameter
Type
Required
Description

func

Function

Callback function to be executed

timeout

Number

Duration in sections to wait

Last updated