We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f349d3c commit 00c3815Copy full SHA for 00c3815
README.md
@@ -78,12 +78,13 @@ async def main():
78
async with SearchClient.create(app_id, api_key) as client:
79
index = client.init_index('articles')
80
81
- results = await asyncio.gather(
82
- index.save_object_async({'objectID': 1, 'foo': 'bar'}),
83
- index.save_object_async({'objectID': 2, 'foo': 'foo'})
84
- )
+ response = await index.save_objects_async([
+ {'objectID': 1, 'foo': 'bar'},
+ {'objectID': 2, 'foo': 'foo'}
+ ])
85
86
- MultipleResponse(results).wait()
+ for raw_response in response.raw_responses:
87
+ await index.wait_task_async(raw_response['taskID'])
88
89
print(await index.search_async(''))
90
0 commit comments