{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiffbvrptwjqlz6bifqbs2vilerufdcagccvgknnhgsj4xka72e7yy",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3midyxtyqfn22"
  },
  "path": "/t/drop-on-await-point/24119#post_5",
  "publishedAt": "2026-03-31T09:14:35.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "So this sounds like a sort of \"space between two yield points is a sort of scope\".\n\nI wonder if you can get part way there by using this sort of a pattern:\n\n\n    async {\n      {\n        let guard = mutex.lock();\n        //...sync operations...\n      }\n      foo().await;\n      {\n        //...more sync ops\n      }\n    }\n",
  "title": "Drop on `await` point"
}