anet Blackquill:
> > Hello,
> >
> > https://invent.kde.org/libraries/croutons is in kdereview now
> >
> > Croutons is a library containing assorted functionality for dealing
> > with asynchronous code in Qt, most notably a future type that can be
> > pas
libraries/croutons is in kdereview now
>
> Croutons is a library containing assorted functionality for dealing
> with asynchronous code in Qt, most notably a future type that can be
> passed into QML as a JavaScript Thennable (similarly to Qt IVI's
> PendingReply) and headers for C++
Wll, I don't see any response to this, and I don't consider it
that important for an inital release, so guess I'll mark an initial
one, and maybe we can add this in later.
-- Janet
Am Mi., 13. Okt. 2021 um 23:25 Uhr schrieb Janet Blackquill :
>
> I don't think that would work, considering
I don't think that would work, considering that for practicality
reasons, we need a std::function to hold onto the then callback to be
able to invoke it when the future completes. Also, lambdas capturing
unique_ptrs seem to be somewhat rare. Not sure that it is worth taking
time to pursue a
> > `then` when calling it, which you lose if you switch from std::function to
> > a generic Fn parameter. But you can (since you're already using C++20)
> > restrict it with the std::invocable concept to avoid this loss of API
> > usage information.
>
> I still don't follow what this means for
schrieb Janet Blackquill:
Hello,
https://invent.kde.org/libraries/croutons is in kdereview now
Croutons is a library containing assorted functionality for dealing
with asynchronous code in Qt, most notably a future type that can be
passed into QML as a JavaScript Thennable (similarly to Qt IVI's
Hi Janet,
> Addressed most of your feedback besides the std::expected thing
Great!
> rather wait and see what that ends up being like once in an actual C++
> standard and use before modelling Result to be more like it.
Fair enough, though it is not expected that the proposal will change much
iumenge, 29 d’agost de 2021, a les 5:10:04 (CEST), Janet
> Blackquill va escriure:
> > > > Hello,
> > > >
> > > > https://invent.kde.org/libraries/croutons is in kdereview now
> > > >
> > > > Croutons is a library containing assorted functional
> > >
> > > https://invent.kde.org/libraries/croutons is in kdereview now
> > >
> > > Croutons is a library containing assorted functionality for dealing
> > > with asynchronous code in Qt, most notably a future type that can be
> > > passed
El diumenge, 29 d’agost de 2021, a les 5:10:04 (CEST), Janet Blackquill va
escriure:
> Hello,
>
> https://invent.kde.org/libraries/croutons is in kdereview now
>
> Croutons is a library containing assorted functionality for dealing
> with asynchronous code in Qt, most not
Hi,
Cool to have a library like this.
I have a few nit-picks.
I'd put the whole library in a namespace as it uses some quite common names
like Result, Error and Future.
future.h:15
The Result type could be made more API-compatible with the expected
std::expected. Things like explicit
Hello,
https://invent.kde.org/libraries/croutons is in kdereview now
Croutons is a library containing assorted functionality for dealing
with asynchronous code in Qt, most notably a future type that can be
passed into QML as a JavaScript Thennable (similarly to Qt IVI's
PendingReply) and headers
12 matches
Mail list logo