cancel method

void cancel()

Implementation

void cancel() async =>
    await Future.wait(subscriptions.map((e) => e.cancel()));