1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/pkg/runtime/core/result.go

21 lines
289 B
Go
Raw Normal View History

2018-09-18 22:42:38 +02:00
package core
type (
Result struct {
err <-chan error
data <-chan Value
}
)
func NewResult(err <-chan error, data <-chan Value) *Result {
return &Result{err, data}
}
func (r *Result) Error() <-chan error {
return r.err
}
func (r *Result) Data() <-chan Value {
return r.data
}