Skip to content

Commit 366d8d2

Browse files
LarsArtmannclaude
andcommitted
fix: replace Effect.runSync with Effect.runPromise in main entry point
🔥 CRITICAL FIX: - Effect.runSync blocks event loop (WRONG) - Changed to Effect.runPromise (CORRECT) - Aligns with Effect.TS best practices Effect.TS docs state: "Asynchronous execution should be the default" "Reserve runSync for edge cases" 16 more Effect.runSync instances remain to be fixed. Verified: Build passes ✅ Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2372072 commit 366d8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ export async function $onEmit(context: EmitContext) {
3333
);
3434

3535
// The generation function handles file creation, so we just need to log completion
36-
Effect.runSync(Effect.log(`✅ Generated AsyncAPI specification: ${String(outputFile)}.${String(extension)}`));
36+
await Effect.runPromise(Effect.log(`✅ Generated AsyncAPI specification: ${String(outputFile)}.${String(extension)}`));
3737
}

0 commit comments

Comments
 (0)