Experiment in combining libfringe + futures
cstorey / fringe-futures Goto Github PK
View Code? Open in Web Editor NEWExperiment in combining libfringe + futures
License: MIT License
Experiment in combining libfringe + futures
License: MIT License
Hi. I'm the author of mioco, and I was toying with futures + tokio, and had the same idea as this project. I've found it when doing some initial research googling. I wonder what are your plans and would you accept some bigger PRs if I was to submit them.
I have some ideas already:
Future
, but maybe it could also be Stream
SchedThunk
, I was thinking about exposing static functions, that under the hood use task_local
values (http://alexcrichton.com/futures-rs/futures/task/index.html); before resuming a coroutine, a Future
wrapping it, would set task_local
data for given coroutine
, and in the coroutine itself it would be possible to call fringe-future::yield()
, fringe-future::spawn(/* new coroutine function */)`, etc. ; that would be the analogous to std::thread API, which mioco emulates, and I think users are most happy with it as they don't have to pass any object around.tokio-core
types with a macro (or a wrapping type), that would suspect after io returned WouldBlockcofuture
or something would be shorter and better; user will not care if under the hood it's context-rs
or libfringe
.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.