]> Cypherpunks repositories - gostls13.git/commit
runtime, internal/poll: name error codes
authorIan Lance Taylor <iant@golang.org>
Tue, 31 Mar 2020 01:25:47 +0000 (18:25 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 31 Mar 2020 04:31:04 +0000 (04:31 +0000)
commitd98023ebb5c2db9a445699b690f2cf6fd77f4b7e
treed8b4df8c13d020917ec91a6f42eb55d8d35cbf6e
parent71d477469c5529b56779cdb3bc235d0a87fe9877
runtime, internal/poll: name error codes

Use explicit names for the error code returned by pollReset
and pollWait, rather than just 0, 1, 2, 3.

Change-Id: I0ab12cae57693deab7cca9cdd2fadd597e23a956
Reviewed-on: https://go-review.googlesource.com/c/go/+/226537
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/internal/poll/fd_poll_runtime.go
src/runtime/netpoll.go