Unpause, Pause, and Cancel methods should return an error channel (with max 1 value sent) rather than an error #250
Labels
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
need/analysis
Needs further analysis before proceeding
P3
Low: Not priority right now
What
Convert the following methods on the GraphsyncExchange interface:
to
Why
The above methods delegate to the RequestManager and ResponseManager, and if you look at the code for their implementation, they all perform a channel wait implicitly. This makes them significantly more blocking than they need to be, and perhaps we want to let calling code decide when to wait for the results.
In particular we may want to unlock mutexs between the call and the wait.
Flagging as needs discussion as its a breaking change
The text was updated successfully, but these errors were encountered: