IA support defer() method

This commit is contained in:
a6a2f5842 2025-09-01 14:16:30 +02:00
parent 6d9236d732
commit f5470c9b0a
1 changed files with 5 additions and 0 deletions

View File

@ -147,6 +147,11 @@ class Handler implements MessageComponentInterface
$message,
$this->channelManager
);
// Run deferred callbacks
\Illuminate\Container\Container::getInstance()
->make(\Illuminate\Support\Defer\DeferredCallbackCollection::class)
->invokeWhen(fn($callback) => true);
} catch (Exception $e) {
$mock->send(json_encode([
'event' => $message['event'].':error',