diff --git a/.rules b/.rules index 67179a9f472..4b4eb08c368 100644 --- a/.rules +++ b/.rules @@ -63,8 +63,6 @@ Within the closures, the inner `cx` provided to the closure must be used instead Trying to update an entity while it's already being updated must be avoided as this will cause a panic. -When `read_with`, `update`, or `update_in` are used with an async context, the closure's return value is wrapped in an `anyhow::Result`. - `WeakEntity` is a weak handle. It has `read_with`, `update`, and `update_in` methods that work the same, but always return an `anyhow::Result` so that they can fail if the entity no longer exists. This can be useful to avoid memory leaks - if entities have mutually recursive handles to each other they will never be dropped. ## Concurrency