MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / print_is_pending

Method print_is_pending

examples/async.cc:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 int32_t get_value_to_print() { return _value_to_print.get_future().get(); }
126
127 bool print_is_pending() const {
128 return _print_finished_future.valid() &&
129 _print_finished_future.wait_for(std::chrono::seconds(0)) !=
130 std::future_status::ready;
131 }
132 void wait_for_print_result() const { _print_finished_future.wait(); }
133 void get_print_result() { _print_finished_future.get(); }
134 void set_print_success() { _print_finished.set_value(); }

Callers 2

mainFunction · 0.80

Calls 1

wait_forMethod · 0.80

Tested by

no test coverage detected