import * as tsplus_module_1 from "@effect/core/io/FiberId/operations/ids";
import * as tsplus_module_2 from "@tsplus/stdlib/collections/Chunk/definition";
import * as tsplus_module_3 from "@tsplus/stdlib/collections/Chunk/map";
import * as tsplus_module_4 from "@tsplus/stdlib/collections/Chunk/join";
/**
 * Creates a string representing the name of the current thread of execution
 * represented by the specified `FiberId`.
 *
 * @tsplus getter ets/FiberId threadName
 */

export function threadName(self) {
  const identifiers = tsplus_module_4.join_(tsplus_module_3.map_(tsplus_module_2.from(tsplus_module_1.ids(self)), n => `${n}`), ",");
  return `effect-ts-fiber-${identifiers}`;
}
//# sourceMappingURL=threadName.mjs.map