1
0
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:
Aaron Piotrowski 2020-06-05 09:47:43 -05:00
parent 13f89b854b
commit 190b98be49
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {