cancel is a placeholder: cancellation is handled the jsonrpc2 package. It should never be invoked in practice because cancellation is preempted, but having its signature here facilitates the construction of methodInfo that can be used to validate incoming cancellation notifications.
(context.Context, *CancelledParams)
| 1489 | // but having its signature here facilitates the construction of methodInfo |
| 1490 | // that can be used to validate incoming cancellation notifications. |
| 1491 | func (ss *ServerSession) cancel(context.Context, *CancelledParams) (Result, error) { |
| 1492 | return nil, nil |
| 1493 | } |
| 1494 | |
| 1495 | func (ss *ServerSession) setLevel(_ context.Context, params *SetLoggingLevelParams) (*emptyResult, error) { |
| 1496 | ss.updateState(func(state *ServerSessionState) { |
no outgoing calls
no test coverage detected