MCPcopy Create free account
hub / github.com/bytecodealliance/wstd / ready

Method ready

src/io/streams.rs:46–48  ·  view source on GitHub ↗

Await for read readiness.

(&self)

Source from the content-addressed store, hash-verified

44 }
45 /// Await for read readiness.
46 async fn ready(&self) {
47 poll_fn(|cx| self.poll_ready(cx)).await
48 }
49 /// Asynchronously read from the input stream.
50 /// This method is the same as [`AsyncRead::read`], but doesn't require a `&mut self`.
51 pub async fn read(&self, buf: &mut [u8]) -> std::io::Result<usize> {

Callers 4

readMethod · 0.45
copy_toMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Calls 2

poll_readyMethod · 0.80
wait_forMethod · 0.80

Tested by

no test coverage detected