什麼是 effect-ts-resources?
在管理資源生命週期(資料庫連線、檔案句柄、套接字)時使用,儘管發生故障、中斷或潛在的資源洩漏,但必須確保清理。 來源:mrevanzak/effect-ts-skills。
在管理資源生命週期(資料庫連線、檔案句柄、套接字)時使用,儘管發生故障、中斷或潛在的資源洩漏,但必須確保清理。
透過命令列快速安裝 effect-ts-resources AI 技能到你的開發環境
來源:mrevanzak/effect-ts-skills。
Overview Manage resource lifecycles using Scope and acquireRelease to guarantee cleanup. Cleanup always runs, even if the program fails, throws, or is interrupted.
Core Pattern Manual try/finally is error-prone in Effect because it bypasses interruption handling.
| try { conn.open() } finally { conn.close() } | Effect.acquireRelease(open, close) |
在管理資源生命週期(資料庫連線、檔案句柄、套接字)時使用,儘管發生故障、中斷或潛在的資源洩漏,但必須確保清理。 來源:mrevanzak/effect-ts-skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/mrevanzak/effect-ts-skills --skill effect-ts-resources在管理資源生命週期(資料庫連線、檔案句柄、套接字)時使用,儘管發生故障、中斷或潛在的資源洩漏,但必須確保清理。 來源:mrevanzak/effect-ts-skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/mrevanzak/effect-ts-skills --skill effect-ts-resources 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/mrevanzak/effect-ts-skills