<commit_before>//
//  Cancelable.swift
//  Rx
//
//  Created by <NAME> on 3/12/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

/**
Represents disposable resource with state tracking.
*/
public protocol Cancelable : Disposable {
    /**
    - returns: Was resource disposed.
    */
    var isDisposed: Bool { get }
}<commit_msg>Implement `Cancelable.disposed` as an extension.<commit_after>//
//  Cancelable.swift
//  Rx
//
//  Created by <NAME> on 3/12/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

/**
Represents disposable resource with state tracking.
*/
public protocol Cancelable : Disposable {
    /**
    - returns: Was resource disposed.
    */
    var isDisposed: Bool { get }
}

public extension Cancelable {
    
    @available(*, deprecated, renamed: "isDisposed")
    var disposed: Bool {
        return isDisposed
    }
    
}
{'fraction_non_alphanumeric': 0.12666666666666668, 'fraction_numerical': 0.02, 'mean_word_length': 2.5753968253968256, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6166318', 'n_tokens_mistral': 303, 'n_tokens_neox': 271, 'n_words': 86}