91team / computer Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi, listened to your flutter podcast on google podcasts. Very interesting, great work and easy to use.
for example:
int countNumbers() {
return 1 + 2;
}
int number = await Computer().compute(countNumbers);
It ill try to call countNumbers(null) and it will give an error NoSuchMethodFound;
As a workAround I currently use
int countNumbers(null) {
return 1 + 2;
}
Please try something not to require that argument if I have no arguments in the method.
Did not find any info in the description that a method must be a top level function.
Hello! I want to use computer.shared for serialize jsons, and also i need to serialize push notifications from the background state.
When i should call computer.turnOff ?
Compute link here was broken. I think this is the one you are trying to point out compute-constant.
how use with the web?
This would be an temporal solution to be able to use this package on the web, even though they are not true isolates.
Hi, thanks for the great package! Simple and very easy to use.
It would be nice to have a different exception thrown when tasks are cancelled when turnOff is called so a cancellation can be separated from exceptions thrown in the compute function.
Static method of a class does not work.
https://stackoverflow.com/questions/51998995/invalid-arguments-illegal-argument-in-isolate-message-object-is-a-closure
We've integrated computer in our app and on iOS the app is stuck on the splash screen. After some looking the issue seems to be that the computer hasn't started yet.
Future<Map<String, dynamic>> decode(String encoded) async {
if (!computer.isRunning) {
print('computer isn\'t turned on yet'); // <-- This is printed
}
return computer.compute<String, Map<String, dynamic>>(parseAndDecode, param: encoded);
}
I would expect the package to either wait in the compute function until the computer is available or, if that's to hard, throw an exception so that we know why the app stopped functioning. Now it just waits forever.
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.