We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b3789c commit bac68baCopy full SHA for bac68ba
src/Annotation/AsyncQueueMessage.php
@@ -14,6 +14,11 @@
14
use Attribute;
15
use Hyperf\Di\Annotation\AbstractAnnotation;
16
17
+/**
18
+ * Don't call the methods with this annotation in async queue environment.
19
+ * Because the execution or delivery of a message depends on whether it is currently in an async queue environment,
20
+ * re delivery in an async queue environment will be treated as a direct execution of the message.
21
+ */
22
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
23
class AsyncQueueMessage extends AbstractAnnotation
24
{
0 commit comments