MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / accept

Method accept

src/environmentd/tests/sql.rs:102–107  ·  view source on GitHub ↗

Accepts a new connection. The future resolves once a new connection has arrived at the server and is awaiting a response. The provided oneshot channel should be used to deliver the response.

(&mut self)

Source from the content-addressed store, hash-verified

100 /// is awaiting a response. The provided oneshot channel should be used to
101 /// deliver the response.
102 async fn accept(&mut self) -> oneshot::Sender<Response> {
103 self.conn_rx
104 .recv()
105 .await
106 .expect("server unexpectedly closed channel")
107 }
108}
109
110#[mz_ore::test(tokio::test(flavor = "multi_thread", worker_threads = 1))]

Callers 3

handle_connectionMethod · 0.45
test_no_blockFunction · 0.45

Calls 2

expectMethod · 0.80
recvMethod · 0.45

Tested by

no test coverage detected