Giter VIP home page Giter VIP logo

computer's People

Contributors

ardera avatar begemot9i avatar cupofme avatar dmitriismitnov avatar hacker-cb avatar nicolaverbeeck avatar stalder avatar wetbikeboy2500 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

computer's Issues

App stuck because Computer is not turned on

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.

Unique exception for cancelled tasks

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.

When call computer.turnOff

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() without an argument passes null to a called method

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.