Skip to content

Is posible to keep the Timer names in an array? #1

@leandroz

Description

@leandroz

Hi!!
I have to create a new Timer in every POST request to a Node.js server a keep track of each one, because then i need to destroy a specific Timer.

The problem is that i need different names for each Timer, so i am doing:

var timers = [];
timers['someId'] = new Timer();

but then when i want to perform get, time or destroy methods on a particular timer is not working. For example doing Timer.destroy(travelTimes[travel._id]); destroy all the Timers instead of a particular timer.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions