Skip to content

If multiple users are trying to access one method, how to make use of it at a time one user only? #3

Description

@mesameen

If multiple users are trying to access one method, how to make use of it at a time one user only?

eg:

Meteor.methods({

getSession: function() {
var session = Session.findOne({_id:'abc'});
if(session !== undefined){
var sessionId = session._id;
return sessionId;
}
}

});

How to use lock concept in this scenario?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions