isCancelable

Tests if something is a Cancelable

template isCancelable (
T
) {}

Members

Manifest constants

isCancelable
enum isCancelable;
Undocumented in source.

Examples

struct A
{
    bool isDisposed() @property
    {
        return true;
    }

    void dispose()
    {
    }
}

class B
{
    bool isDisposed() @property
    {
        return true;
    }

    void dispose()
    {
    }
}

interface C
{
    bool isDisposed() @property;
    void dispose();
}

static assert(isCancelable!A);
static assert(isCancelable!B);
static assert(isCancelable!C);

Meta