public static function sendStatusMessage(ChannelInterface $channel, WorkerStatus $result)
    {
        $channel->sendMessage(($channel instanceof SerializedChannel) ? $result : ['_status_' => $result->toArray()]);
    }
public static function sendStatusMessage(ChannelInterface $channel, WorkerStatus $result)
    {
        $channel->sendMessage(($channel instanceof SerializedChannel) ? $result : ['_status_' => $result->toArray()]);
    }
@param ChannelInterface $channel
@param WorkerStatus     $result

@throws Exception\RuntimeException