Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
query
/
state
/
processing
/
File Content:
canceler.ts
import { MonoTypeOperatorFunction } from 'rxjs'; import { finalize } from 'rxjs/operators'; import { BackendSrv } from 'app/core/services/backend_srv'; export function cancelNetworkRequestsOnUnsubscribe<T>( backendSrv: BackendSrv, requestId: string | undefined ): MonoTypeOperatorFunction<T> { return finalize(() => { if (requestId) { backendSrv.resolveCancelerIfExists(requestId); } }); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
canceler.ts
414 bytes
0644
revision.ts
537 bytes
0644
N4ST4R_ID | Naxtarrr