v0.0.633
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m42s

This commit is contained in:
2026-04-13 16:12:09 +02:00
parent 1edc2712ed
commit f62e7499ec
4 changed files with 52 additions and 20 deletions
+2 -2
View File
@@ -173,14 +173,14 @@ func (ps *PubSub[TNamespace, TData]) PublishAsync(ns TNamespace, data TData, tim
subscriber = len(subs)
for _, sub := range subs {
func() {
go func() {
sub.subLock.Lock()
defer sub.subLock.Unlock()
if sub.Func != nil {
go func() { sub.Func(data) }()
} else if sub.Chan != nil {
go func() { _ = syncext.WriteChannelWithTimeout(sub.Chan, data, timeout) }()
_ = syncext.WriteChannelWithTimeout(sub.Chan, data, timeout)
}
}()
}