const fileName_1 = "(@effect/core) _src/io/Fiber/operations/done.ts";
import * as tsplus_module_1 from "@effect/core/io/FiberId/operations/none";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/succeedNow";
import * as tsplus_module_3 from "@tsplus/stdlib/collections/Chunk/empty";
import * as tsplus_module_4 from "@effect/core/io/Effect/operations/unit";
import * as tsplus_module_5 from "@tsplus/stdlib/data/Maybe/definition";
import { makeSynthetic } from "@effect/core/io/Fiber/definition";
/**
 * A fiber that is done with the specified `Exit` value.
 *
 * @tsplus static ets/Fiber/Ops done
 */

export function done(exit) {
  return makeSynthetic({
    id: tsplus_module_1.none,
    await: tsplus_module_2.succeedNow(exit, fileName_1 + ":11:29"),
    children: tsplus_module_2.succeedNow(tsplus_module_3.empty(), fileName_1 + ":12:32"),
    inheritRefs: tsplus_module_4.unit,
    poll: tsplus_module_2.succeedNow(tsplus_module_5.some(exit), fileName_1 + ":14:28"),
    interruptAs: () => tsplus_module_2.succeedNow(exit, fileName_1 + ":15:41")
  });
}
//# sourceMappingURL=done.mjs.map