mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 09:35:39 -05:00
16 lines
609 B
TypeScript
16 lines
609 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
'use strict';
|
|
|
|
import { Subscription } from 'rxjs/Subscription';
|
|
import { IDisposable } from 'vs/base/common/lifecycle';
|
|
|
|
export function toDisposableSubscription(sub: Subscription): IDisposable {
|
|
return {
|
|
dispose: () => {
|
|
sub.unsubscribe();
|
|
}
|
|
};
|
|
} |