mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 09:57:51 +08:00
eval: In "all", always wait for valuesDone before return.
This commit is contained in:
parent
4f09e19876
commit
c84dbf4501
|
@ -716,8 +716,8 @@ func all(ec *EvalCtx, args []Value, opts map[string]Value) {
|
|||
close(valuesDone)
|
||||
}()
|
||||
_, err := io.Copy(ec.ports[1].File, ec.ports[0].File)
|
||||
maybeThrow(err)
|
||||
<-valuesDone
|
||||
maybeThrow(err)
|
||||
}
|
||||
|
||||
func take(ec *EvalCtx, args []Value, opts map[string]Value) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user