MCPcopy Create free account
hub / github.com/baidu/tera / async_get

Function async_get

src/sdk/python/sample.py:169–178  ·  view source on GitHub ↗

async get

(table)

Source from the content-addressed store, hash-verified

167
168
169def async_get(table):
170 """ async get """
171 print("\nasync get")
172 rowkey_list = ["async", "async_not_found"]
173 for key in rowkey_list:
174 reader = table.NewRowReader(key)
175 reader.SetCallback(read_callback)
176 table.ApplyReader(reader)
177 while not table.IsGetFinished():
178 time.sleep(0.01)
179
180
181def put_get_with_timestamp(table):

Callers 1

mainFunction · 0.85

Calls 4

ApplyReaderMethod · 0.80
NewRowReaderMethod · 0.45
SetCallbackMethod · 0.45
IsGetFinishedMethod · 0.45

Tested by

no test coverage detected