Re: NOTIFY in asynchronous mode

Поиск
Список
Период
Сортировка
От Tobias Oberstein
Тема Re: NOTIFY in asynchronous mode
Дата
Msg-id 634914A010D0B943A035D226786325D42D0C0CE428@EXVMBX020-12.exch020.serverdata.net
обсуждение исходный текст
Ответ на Re: NOTIFY in asynchronous mode  (Jan Urbański <wulczer@wulczer.org>)
Список psycopg
> I think that's a reasonably simple API and one that allows you to do anything
> you want without introducing some extra interfaces that notify observers
> have to implement, just requiring that they are callable.

Yeah, thats fine. So

+ all observers registered on a connection would get notified when a notification
on that connection arrives.

+ a dispatching scheme based on channel can be built on top of above

+ the LISTEN/UNLISTEN is orthogonal to observer registration

+ any callable which takes a first positional argument of type "notify" can be used

+ the whole interface for above is Connection.addNotifyObserver/removeNotifyObserver

, right?


В списке psycopg по дате отправления:

Предыдущее
От: Jan Urbański
Дата:
Сообщение: Re: NOTIFY in asynchronous mode
Следующее
От: Tobias Oberstein
Дата:
Сообщение: Re: NOTIFY in asynchronous mode