{
"$type": "site.standard.document",
"contributors": [
{
"did": "did:plc:jdrw76zcbtriweixutdr5enn",
"displayName": "nyan"
}
],
"description": "tried to add a reconnection wait inside a macOS CGEventTap callback. macOS killed the tap within seconds. event handlers must return immediately — always.",
"path": "/posts/2026-03-27-cgeventtap-blocking/",
"publishedAt": "2026-03-27T00:00:00.000000Z",
"site": "at://did:plc:6guvlunah45ryrpsaf2mfr4l/site.standard.publication/self",
"tags": [
"debugging",
"til"
],
"title": "never sleep in a CGEventTap handler"
}