Skip to content

Commit

Permalink
Merge pull request #2112 from devlzcode/expose-newfutureerror
Browse files Browse the repository at this point in the history
feat: Expose newFutureError for developer friendliness
  • Loading branch information
Roasbeef committed Feb 27, 2024
2 parents 5b6d265 + c4b1448 commit 9ea2eea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpcclient/infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,11 @@ func newFutureError(err error) chan *Response {
return responseChan
}

// Expose newFutureError for developer usage when creating custom commands.
func NewFutureError(err error) chan *Response {
return newFutureError(err)
}

// ReceiveFuture receives from the passed futureResult channel to extract a
// reply or any errors. The examined errors include an error in the
// futureResult and the error in the reply from the server. This will block
Expand Down

0 comments on commit 9ea2eea

Please sign in to comment.