new PromiseMethod()
Constructor for a Jayson Promise Method
- Source:
- See:
Returns:
- Type
- PromiseMethod
Extends
Methods
-
execute(server, requestParams [, context], outerCallback)
Executes this method in the context of a server
-
Parameters:
Name Type Argument Description serverServer requestParamsArray | Object contextObject <optional>
Optional context object passed to methods outerCallbackfunction - Overrides:
- Source:
Returns:
- Type
- Promise
-
getHandler()
Returns the handler function associated with this method
-
- Inherited From:
- Source:
Returns:
- Type
- function
-
setHandler(handler)
Sets the handler function associated with this method
-
Parameters:
Name Type Description handlerfunction - Inherited From:
- Source: