import * as M from "../_internal/managed";
import { Stream } from "./definitions";
/**
 * Executes the provided finalizer after this stream's finalizers run.
 */

export function ensuring_(self, fin) {
  return new Stream(M.ensuring_(self.proc, fin));
}
/**
 * Executes the provided finalizer after this stream's finalizers run.
 */

export function ensuring(fin) {
  return self => ensuring_(self, fin);
}
//# sourceMappingURL=ensuring.js.map