client/operations.go
func (op *remoteOperation) Wait() error {
	<-op.chDone

	if op.chPost != nil {
		<-op.chPost
	}

	return op.err
}
func (op *remoteOperation) Wait() error {
	<-op.chDone

	if op.chPost != nil {
		<-op.chPost
	}

	return op.err
}
func ( op * remoteOperation ) Wait ( ) error { <- op . chDone if op . chPost != nil { <- op . chPost } return op . err }
// Wait lets you wait until the operation reaches a final state
Wait lets you wait until the operation reaches a final state