From: qydysky Date: Sun, 30 Jul 2023 07:04:13 +0000 (+0800) Subject: add X-Git-Tag: v0.28.0+20230730f9f4c80 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=f9f4c80723b09f91c81e849cc6081abb0ae950da;p=part%2F.git add --- diff --git a/msgq/Msgq_test.go b/msgq/Msgq_test.go index 5fb2664..b00ca07 100644 --- a/msgq/Msgq_test.go +++ b/msgq/Msgq_test.go @@ -165,6 +165,18 @@ func Benchmark_1(b *testing.B) { } } +func Test_4(t *testing.T) { + mq := New() + cancel := mq.Pull_tag(FuncMap{ + `del`: func(a any) (disable bool) { + return true + }, + }) + time.Sleep(time.Millisecond * 500) + mq.PushLock_tag(`del`, nil) + cancel() +} + func Test_2(t *testing.T) { mq := New() cancel := mq.Pull_tag(FuncMap{