[Bug 789843] API: GstPromise - object with promise/future-like semantics
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Nov 20 12:54:07 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=789843
--- Comment #12 from Matthew Waters (ystreet00) <ystreet00 at gmail.com> ---
(In reply to Sebastian Dröge (slomo) from comment #11)
> (In reply to Matthew Waters (ystreet00) from comment #10)
> > > @@ +45,3 @@
> > > + GST_PROMISE_RESULT_INTERRUPTED,
> > > + GST_PROMISE_RESULT_REPLIED,
> > > + GST_PROMISE_RESULT_EXPIRED,
> > >
> > > It might be good to also add an ERROR case here, and allow to get/pass a
> > > GError in that case. Everything can fail
> >
> > I don't believe any of the promise functionality has the potential to fail
> > without a warn/critical. Did you have a specific case in mind where this is
> > not the case?
>
> Not the promise infrastructure, but an actual promise itself. It's similar
> to expired, but with a real error. Constructed example: Say you promise to
> produce some information that requires you to talk to the network, but then
> DNS resolution fails and you can't provide that information anymore. What
> would happen then? Ideally you'd like to tell the consumer that the promise
> is never going to be fulfilled anymore and that there was this specific
> error.
>
> Note also that the promises in GIO are all fallible (GAsyncResult / GTask).
An error is still a reply so this boils down to nothing changing.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list