# toAsync

Converts the function into an asynchronous function. Each invocation of the resulting asynchronous function causes an invocation of the original synchronous function on the specified scheduler.

## Arguments

1. `func` _(`Function`)_: Function to convert to an asynchronous function.
2. `[scheduler=Rx.Scheduler.timeout]` _(`Scheduler`)_: Scheduler to run the function on. If not specified, defaults to Scheduler.timeout.
3. `[context]` _(`Any`)_: The context for the func parameter to be executed.  If not specified, defaults to undefined.

### Returns

_(`Function`)_: Asynchronous function.

### Example
