Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
handle_async_state in datafusion::physical_plan - Rust
[go: Go Back, main page]

Macro datafusion::physical_plan::handle_async_state

source ·
macro_rules! handle_async_state {
    ($state_func:expr, $cx:expr) => { ... };
}
Expand description

The handle_async_state macro adapts the handle_state macro for use in asynchronous operations, particularly when dealing with Poll results within async traits like EagerJoinStream. It polls the asynchronous state-changing function using poll_unpin and then passes the result to handle_state for further processing.

§Arguments

  • $state_func: An async function or future that returns a Result<StatefulStreamResult<_>>.
  • $cx: The context to be passed for polling, usually of type &mut Context.