Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion standards/CODE.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Code that no input can reach is removed, not covered: needing a deliberately bro

## Asynchronous work and processes

- Use the asynchronous API for file, network and process work wherever one exists; a blocking call is allowed only in a short-lived command-line process.
- Use the asynchronous API for file, network and process work wherever one exists; a blocking call is allowed only in a short-lived command-line process, or, before an Electron app is ready, for what Electron's calls that work only before `ready` depend on, such as its profile folder and single-instance lock.
- Every asynchronous operation has an owner that observes its completion and errors.
Background work has an explicit lifetime and failure path; no unobserved rejections or callback failures.
- Operations that can stall have documented deadlines and cancellation.
Expand Down