It would be wonderful if we had asynchronous versions of the API call wrapper functions in this library.
For example, if we had an asynchronous function dcicutils.ff_utils.afaceted_search, then it would be "awaitable", meaning users could run the following code:
async def myFunction(key, query_kwargs)
...
batch = await ff_utils.afaceted_search(key=key, **query_kwargs)
# do something with batch
...
This would ensure the library isn't holding up the client's global interpreter lock while the server is putting together the metadata for possibly thousands of records.
It would be wonderful if we had asynchronous versions of the API call wrapper functions in this library.
For example, if we had an asynchronous function
dcicutils.ff_utils.afaceted_search, then it would be "awaitable", meaning users could run the following code:This would ensure the library isn't holding up the client's global interpreter lock while the server is putting together the metadata for possibly thousands of records.