subscribeToOrders

final static HyperTrack.Cancellable subscribeToOrders(Function1<HyperTrack.OrdersMap, Unit> callback)

Subscribe to changes in the orders assigned to the worker

Return

an EmitterSubscription object that can be used to unsubscribe from the event

Parameters

callback

callback function to invoke when the orders change