public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pawel Veselov <[email protected]>
To: List <[email protected]>
Subject: Re: PGConnection.getNotifications(0) doesn't block
Date: Thu, 3 Aug 2023 16:39:18 +0200
Message-ID: <CAMnJ+Bcb3CO-B9M-hwqOdaTvytUDReA-7S2xd2GA00AapXraLw@mail.gmail.com> (raw)
In-Reply-To: <CAMnJ+Bf7STMy2DwKjT12dxT-j+Han1KoVSkmFZ9Otuwd6to+DA@mail.gmail.com>
References: <CAMnJ+Bf7STMy2DwKjT12dxT-j+Han1KoVSkmFZ9Otuwd6to+DA@mail.gmail.com>
Hello.
On Thu, Aug 3, 2023 at 4:04 PM Pawel Veselov <[email protected]> wrote:
>
> Hello.
>
> I'm implementing a bit that is expected to wait for published channel
> notifications,
> and once there are any - process them.
>
> I'm using PGConnection.getNotifications(0), but that immediately
> returns an empty
> array, and doesn't block like JavaDoc says it should.
>
> I'm on 42.6.0.
>
> What am I missing?
The transaction state is not IDLE, that's what's missing.
But JavaDoc doesn't mention that bit.
view thread (4+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: PGConnection.getNotifications(0) doesn't block
In-Reply-To: <CAMnJ+Bcb3CO-B9M-hwqOdaTvytUDReA-7S2xd2GA00AapXraLw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox