ServiceNow/PySNC

Async Support

Closed this issue · 1 comments

The topic of asynchronous requests was brought up. This seems mostly useful for the get() method.

Perhaps something like:

gr.get('sysidhere', lambda x: for e in x: print(e))

or we can deal with Futures

future = gr.get('sysidhere')
future.result()

...

await gr.get('sysidhere')

Or

client.await([gr.get('asdf'), gr.get('1234')])

this isn't something worth doing