multi: make linter happy
Fix all the linter problems for the `v0.16.0-beta.rc3`.
This commit is contained in:
5 files changed
+42
-21
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// RecvOrTimeout attempts to recv over chan c, returning the value. If the
|
||||
// timeout passes before the recv succeeds, an error is returned
|
||||
// timeout passes before the recv succeeds, an error is returned.
|
||||
func RecvOrTimeout[T any](c <-chan T, timeout time.Duration) (*T, error) {
|
||||
select {
|
||||
case m := <-c:
|
||||
|
||||
Reference in new issue
Block a user