async-wormhole's People
Forkers
isgasho bitkis zmilan zebp imor kaimast dmgolembiowski stjordanis placrosse snow2flying jjl sitedata apepkuss icodein meshx-org rulexec pinkforestasync-wormhole's Issues
Type parameter P in AsyncWormhole
(Yay, this seems to be the first issue :) )
I noticed a small issue with the latest version of async-wormhole
. When you do not define a pre_post_poll handler for async wormhole it will throw an error like this one:
error[E0698]: type inside `async fn` body must be known in this context
--> lib/api/src/instance.rs:190:20
|
190 | let task = async_wormhole::AsyncWormhole::new(stack, |yielder| -> Result<Box<[crate::Val]>, RuntimeError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `P`
|
note: the type is part of the `async fn` body because of this `await`
The easiest way to fix this is to just set an empty lambda function like so, but that's a little ugly.
task.set_pre_post_poll(|| {});
Maybe we can hide function this method feature flag or require the handler to always be set? I think the error might be super confusing for some users.
Using the backtrace-rs crate inside of a generator segfaults on Linux x64
Having a split stack makes it really easy to break backtracing libraries. For now I have disabled the test on Linux.
Could be a bug inside of the backtrace crate. Default backtraces on rust panics work.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.