/// Registers to wait until data is available on either `socket` or `wayland_channel`.
///
/// Note that this does not actually block, that can be done by calling `waiter.wait*`.
Registers to wait until data is available on either `socket` or `wayland_channel`.
Note that this does not actually block, that can be done by calling `waiter.wait*`.
Registers to wait until data is available on either ` socket ` or ` wayland_channel ` . Note that this does not actually block that can be done by calling ` waiter . wait * ` .
fn wait_async(socket: &Socket, wayland_channel: &zx::Channel, waiter: &Arc<Waiter>) {
    socket.wait_async(waiter, FdEvents::POLLIN | FdEvents::POLLHUP, Box::new(|_events| {}));
    waiter
        .wake_on_signals(
            wayland_channel,
            zx::Signals::CHANNEL_READABLE | zx::Signals::CHANNEL_PEER_CLOSED,
            Box::new(|_signals| {}),
        )
        .expect("wake_on_signals failed.");
}
fn wait_async ( socket : & Socket , wayland_channel : & zx :: Channel , waiter : & Arc < Waiter > ) { socket . wait_async ( waiter , FdEvents :: POLLIN | FdEvents :: POLLHUP , Box :: new ( | _events | { } ) ) ; waiter . wake_on_signals ( wayland_channel , zx :: Signals :: CHANNEL_READABLE | zx :: Signals :: CHANNEL_PEER_CLOSED , Box :: new ( | _signals | { } ) , ) . expect ( " " ) ; }
Registers to wait until data is available on either `socket` or `wayland_channel`.
Registers to wait until data is available on either ` socket ` or ` wayland_channel ` .
socket
&Socket
wayland_channel
&zx::Channel
waiter
&Arc<Waiter>