Skip to content

Add ability for services to return a promise instead of a callback #41

@daffl

Description

@daffl

If a service returns a Promises/A+ Promise and the callback isn't called, the promise should be used to resolve the request.

var todoService = {
  todos: [],

  // Return all todos from this service
  find: function(params) {
    return Q(this.todos);
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions