The default behaviour stays the same, but you can now specify wait_for in order to switch to a non-blocking request and call the callback as the data arrives.
Fixes #519
@jcheng5 Does that feel like the right argument name? I have kept the behaviour the same as previously, but maybe the default should be wait_for = 0? Does the wait_for implementation loop look ok to you?
The default behaviour stays the same, but you can now specify
wait_for
in order to switch to a non-blocking request and call the callback as the data arrives.Fixes #519
@jcheng5 Does that feel like the right argument name? I have kept the behaviour the same as previously, but maybe the default should be
wait_for = 0
? Does thewait_for
implementation loop look ok to you?