rx.disposable

This module defines the concept of Disposable.

Members

Classes

AnonymousDisposable
class AnonymousDisposable
CancelableObject
class CancelableObject(T)

Class that implements the Cancelable interface and wraps the isDisposed property in virtual functions.

CancellationToken
class CancellationToken

Simply implements for Cancelable interface. Its propagates notification that operations should be canceled.

CompositeDisposable
class CompositeDisposable
DisposableObject
class DisposableObject(T)

Class that implements the Disposable interface and wraps the dispose methods in virtual functions.

NopDisposable
class NopDisposable

Defines a instance property that return NOP Disposable.

RefCountDisposable
class RefCountDisposable
SerialDisposable
class SerialDisposable
SignalDisposable
class SignalDisposable
SingleAssignmentDisposable
class SingleAssignmentDisposable

Functions

disposableObject
auto disposableObject(T disposable)

Wraps dispose method in virtual functions.

withDisposed
auto withDisposed(auto ref TDisposable disposable, void delegate() disposed)

Interfaces

Cancelable
interface Cancelable

Wrapper for cancelable objects.

Disposable
interface Disposable

Wrapper for disposable objects.

Templates

isCancelable
template isCancelable(T)

Tests if something is a Cancelable

isDisposable
template isDisposable(T)

Tests if something is a Disposable.

withDisposed
template withDisposed(alias f)