new SessionHandlerExecutor(startHandlersopt, endHandlersopt)
The SessionHandlerExecutor manages the execution of the registered SessionHandlers.
This works by iterating over the list of registered SessionHandlers and, when a `Promise` is discovered, waits
until the completion, and then continues over the loop
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
startHandlers |
SessionHandler |
<optional> |
The start SessionHandlers to execute |
endHandlers |
SessionHandler |
<optional> |
The end SessionHandlers to execute |
Methods
executeEnd(svContext) → {Promise}
Executes the end SessionHandlers
Parameters:
Name | Type | Description |
---|---|---|
svContext |
SVContext | The context to execute with |
Returns:
The `Promise` that can be used to wait until this completes
- Type
- Promise
executeStart(svContext) → {Promise}
Executes the start SessionHandlers.
Parameters:
Name | Type | Description |
---|---|---|
svContext |
SVContext | The context to execute with |
Returns:
The `Promise` that can be used to wait until this completes
- Type
- Promise