Macro poll_for_io_request

Source
poll_for_io_request!() { /* proc-macro */ }
Expand description

Generates code for Future::poll.

§Must have above

  • this with io_request_data (Option<IoRequestData>) fields;

  • cx with waker method that returns (Waker) which contains *const orengine::runtime::Task in data;

  • declared variable ret (usize) which can be used in ret_statement.

§Arguments

  • do_request - the request code
  • ret_statement - the return statement which can use ret(usize) variable.