Coder Social home page Coder Social logo

Comments (2)

ivanseidel avatar ivanseidel commented on May 24, 2024

Hi Bill,

I'm glad you liked it. getAvailable method is pretty dumb actually... but,
you can fell free to change it! It would be really good to have it
improved. If it works well we can update the repository!

Can you try to fix/improve it?

Ivan
Em 27/06/2014 13:32, "SwarfEye" [email protected] escreveu:

Hi,

I've been using your library a lot! Thanks so much.

I have recently encountered an issue with the library.

I have a project that involves a bunch of different objects and libraries.
Several of the different objects need to make use of timers. I need to be
able to get a timer, name it, and hold on to it for a period of time, and I
need to have a number of different objects do so that they all have access
to their assigned timer.

Currently, the getAvailable() function will keep returning the same timer
until that timer is started, so it is not possible to reserve a timer for
use later. Also, if you run out of timers, then getAvailable() doesn't
notify you of the error... it just returns timer0... which is a possible
source of big trouble if timer0 is already in use.

My current solution is simply to hard-code timer numbers into each
instance... but it would be much nicer to be able to pickup a timer when
needed/as needed and then release them again without having to assign
specific timers to each object.

Thanks,

Bill


Reply to this email directly or view it on GitHub
#28.

from duetimer.

SwarfEye avatar SwarfEye commented on May 24, 2024

Thanks again for making this library available.

I'll let you know if I implement a fix here. At this point I think I'll be
able to hack around the limitations, and so I likely will... but maybe it
won't work for some reason and then I'll have to dig in.

Thanks again.

Bill

On Fri, Jun 27, 2014 at 4:55 PM, Ivan Seidel [email protected]
wrote:

Hi Bill,

I'm glad you liked it. getAvailable method is pretty dumb actually... but,
you can fell free to change it! It would be really good to have it
improved. If it works well we can update the repository!

Can you try to fix/improve it?

Ivan
Em 27/06/2014 13:32, "SwarfEye" [email protected] escreveu:

Hi,

I've been using your library a lot! Thanks so much.

I have recently encountered an issue with the library.

I have a project that involves a bunch of different objects and
libraries.
Several of the different objects need to make use of timers. I need to
be
able to get a timer, name it, and hold on to it for a period of time,
and I
need to have a number of different objects do so that they all have
access
to their assigned timer.

Currently, the getAvailable() function will keep returning the same
timer
until that timer is started, so it is not possible to reserve a timer
for
use later. Also, if you run out of timers, then getAvailable() doesn't
notify you of the error... it just returns timer0... which is a possible
source of big trouble if timer0 is already in use.

My current solution is simply to hard-code timer numbers into each
instance... but it would be much nicer to be able to pickup a timer when
needed/as needed and then release them again without having to assign
specific timers to each object.

Thanks,

Bill


Reply to this email directly or view it on GitHub
#28.


Reply to this email directly or view it on GitHub
#28 (comment).

Bill Gray
Velkess
415 407 7356

from duetimer.

Related Issues (20)

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.