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

Method next_sync

src/timely-util/src/builder_async.rs:161–170  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

159
160impl<T: Timestamp, D: Container, C: InputConnection<T>> AsyncInputHandle<T, D, C> {
161 pub fn next_sync(&mut self) -> Option<Event<T, C::Capability, D>> {
162 let mut queue = self.queue.borrow_mut();
163 match queue.pop_front()? {
164 Event::Data(cap, data) => Some(Event::Data(cap, data)),
165 Event::Progress(frontier) => {
166 self.done = frontier.is_empty();
167 Some(Event::Progress(frontier))
168 }
169 }
170 }
171
172 /// Waits for the handle to have data. After this function returns it is guaranteed that at
173 /// least one call to `next_sync` will be `Some(_)`.

Callers 6

upsert_innerFunction · 0.80
upsert_classicFunction · 0.80
write_data_filesFunction · 0.80
commit_to_icebergFunction · 0.80
write_batchesFunction · 0.80
poll_nextMethod · 0.80

Calls 4

DataInterface · 0.85
ProgressFunction · 0.85
pop_frontMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected