mirror of
https://github.com/danog/postgres.git
synced 2024-12-02 09:27:54 +01:00
yield() to emit()
This commit is contained in:
parent
13f89b854b
commit
190b98be49
@ -101,7 +101,7 @@ final class PgSqlHandle implements Handle
|
|||||||
$notification->channel = $channel;
|
$notification->channel = $channel;
|
||||||
$notification->pid = $result["pid"];
|
$notification->pid = $result["pid"];
|
||||||
$notification->payload = $result["payload"];
|
$notification->payload = $result["payload"];
|
||||||
$listeners[$channel]->yield($notification);
|
$listeners[$channel]->emit($notification);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($deferred === null) {
|
if ($deferred === null) {
|
||||||
|
@ -481,7 +481,7 @@ final class PqHandle implements Handle
|
|||||||
$notification->channel = $channel;
|
$notification->channel = $channel;
|
||||||
$notification->pid = $pid;
|
$notification->pid = $pid;
|
||||||
$notification->payload = $message;
|
$notification->payload = $message;
|
||||||
$source->yield($notification);
|
$source->emit($notification);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
|
Loading…
Reference in New Issue
Block a user