updated dependencies and go

This commit is contained in:
2026-04-21 11:06:01 +02:00
parent f62e7499ec
commit 84b87d61f2
91 changed files with 551 additions and 637 deletions
+3 -2
View File
@@ -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