(self: Pin<&mut Self>, _cx: &mut Context)
| 70 | impl Future for wasmtime_async_continuation_t { |
| 71 | type Output = (); |
| 72 | fn poll(self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Self::Output> { |
| 73 | let this = self.get_mut(); |
| 74 | let cb = this.callback; |
| 75 | if cb(this.env) { |
| 76 | Poll::Ready(()) |
| 77 | } else { |
| 78 | Poll::Pending |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /// Internal structure to add Send/Sync to a c_void member. |
no test coverage detected