Run the dispatcher event loop for mirai task distribution.
.dispatcher(sock, psock, monitor, reset, serial, envir, next_stream)Integer status code (0 = normal exit).
REP socket for host communication.
POLY socket for daemon communication.
Monitor object for pipe events (its CV is used for signaling).
Pre-serialized connection reset error (raw vector).
Serialization configuration (list or NULL).
Environment containing RNG stream state.
Function to get next RNG stream, called as next_stream(envir).