You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an RPC endpoint raises some error, the only time the client is notified is by awaiting the stream object itself:
asyncdefclient_stream(stream: Stream):
raiseValueError("This should cause transactions to fail")
manager=RPCManager()
manager.register("client_stream", client_stream)
withclient.request_stream("client_stream") asstream:
foriinrange(1000000):
awaitstream.send(i) # all items are sent despite the error raised in the remote awaitstream#error is raised happens here
When performing large send operations or send/receive functions, it may make sense to abort or raise an error as soon as some error condition has been detected so further cycles aren't spent trying to handle data when there's no remote processing it.
The text was updated successfully, but these errors were encountered:
If an RPC endpoint raises some error, the only time the client is notified is by awaiting the stream object itself:
When performing large
send
operations or send/receive functions, it may make sense to abort or raise an error as soon as some error condition has been detected so further cycles aren't spent trying to handle data when there's no remote processing it.The text was updated successfully, but these errors were encountered: