Closed GoudanWoo closed 8 months ago
Sometimes when we call this project to subscribe to some data, we need to use select {} for timeout control. like:
select {}
https://github.com/gagliardetto/solana-go/blob/790032bfec094566011ad551254b1df937e0a027/rpc/sendAndConfirmTransaction/sendAndConfirmTransaction.go#L123-L143
But if there is only .Recv() method, we are unable to complete requirements such as timeout control and active cancel. So I added .Response() and .Err() to do it.
.Recv()
.Response()
.Err()
thanks!
Sometimes when we call this project to subscribe to some data, we need to use
select {}
for timeout control. like:https://github.com/gagliardetto/solana-go/blob/790032bfec094566011ad551254b1df937e0a027/rpc/sendAndConfirmTransaction/sendAndConfirmTransaction.go#L123-L143
But if there is only
.Recv()
method, we are unable to complete requirements such as timeout control and active cancel. So I added.Response()
and.Err()
to do it.