updated dependencies and go
This commit is contained in:
+3
-2
@@ -1,7 +1,8 @@
|
||||
package syncext
|
||||
|
||||
import (
|
||||
"golang.org/x/net/context"
|
||||
context0 "context"
|
||||
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -27,7 +28,7 @@ func WriteChannelWithTimeout[T any](c chan T, msg T, timeout time.Duration) bool
|
||||
}
|
||||
}
|
||||
|
||||
func WriteChannelWithContext[T any](ctx context.Context, c chan T, msg T) error {
|
||||
func WriteChannelWithContext[T any](ctx context0.Context, c chan T, msg T) error {
|
||||
select {
|
||||
case c <- msg:
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user