import { EventEmitter } from "https://deno.land/x/denyard@0.1.0/deps.ts";
Closes async iterators, allowing them to finish and removes listeners. If no eventName is specified, all iterators will be closed, including the iterator for the class.
Parameters
optional
eventName: K