helgebetzinger / coasync4cpp Goto Github PK
View Code? Open in Web Editor NEWAllows to write async code without callbacks using async/await/task! For C++ !
Home Page: https://github.com/helgebetzinger/coasync4cpp/wiki
License: Other
Allows to write async code without callbacks using async/await/task! For C++ !
Home Page: https://github.com/helgebetzinger/coasync4cpp/wiki
License: Other
Need something like co::sleep( milliseconds ) to pause current coroutine.
Becaus of much possibiities to wait for a while, we ned a wrapper for this.
Maybe TaskScheduler is the right place for implementtation.
Wish a task factory, that create an Task object from an QNetworkReply * and takes care of the lifecycle of the incorporated qt elements.
actually post2thread allows only <void(void) >. Nevertheless, would be more flexible, if it allows for
an return value and simply ignores it.
see the TEST_F(test_QtAwaitables, QFutureWithQtConcurrent ) { test, where the line
mainThread->postex( bindAsTask( [=] {
could be rewritten as
post2current( bindAsTask( [=] {
Wish a task factory, that create an Task object from an EnginioReply * and takes care of the lifecycle of the incorporated qt elements.
Thus, allows it using signals without slots, saves us from writing connect/disconnects.
With other words: handle Qt-Signal like an awaitable and make it possible to code with slots the same way as coding a sync program.
and automate creation of libaries, test and execution of the tests.
Wish a task factory, that create an Task object from an QFuture and takes care of the lifecycle of the incorporated qt elements.
Hi,
I have some build errors on OSX (Clang Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
-- Build files have been written to: /Users/nos/coding/coasync4cpp/build
[ 20%] Building CXX object coasync4cpp/CMakeFiles/coasync4cpp.dir/src/bind2thread.cpp.o
In file included from /Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.cpp:3:
In file included from /Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.h:9:
/Users/nos/coding/coasync4cpp/coasync4cpp/src/task.h:108:9: error: use of undeclared identifier 'is_ready'
if ( is_ready()) {
^
In file included from /Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.cpp:3:
/Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.h:96:3: error: static_assert failed "we should never go here!"
static_assert(false, "we should never go here!");
^ ~~~~~
/Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.h:132:105: error: expected expression
-> decltype(std::bind(&Bind2Proxy<Signature>::post2thread_w_args< remove_const_reference<FirstT>::type >, thread, foo, std::forward<FirstT>(arg0), std::forward<Ts>(args)...))
^
/Users/nos/coding/coasync4cpp/coasync4cpp/src/bind2thread.h:140:102: error: expected expression
return std::bind( &Bind2Proxy<Signature>::post2thread_w_args< remove_const_reference<FirstT>::type >, thread, foo, std::forward<FirstT>(arg0), std::forward<Ts>(args)...);
^
I just tried coasync4cpp, not the others.
Note: I already fixed some minor build problems.
The (pre-alpha) Buildscript is to be found on my Github fork: https://github.com/nob13/coasync4cpp/tree/cmake
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.