void valvula_io_waiting_set_dispatch ( ValvulaCtx ctx,
ValvulaIoDispatch  dispatch 
)

Allows to configure the dispatch function to be used for the automatic dispatch function.

Parameters
ctxThe context where the operation will be performed.
dispatchThe dispatch function to be executed on every socket changed.