Skip to content

Commit

Permalink
Add link to example in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Jul 29, 2024
1 parent 8e2a784 commit 148abe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book/src/cycles/fallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ fn my_recover_fn(
) -> MyResultValue
```

See [the tests](https://github.com/salsa-rs/salsa/blob/cd339fc1c9a6ea0ffb1d09bd3bffb5633f776ef3/tests/cycles.rs#L132-L141) for an example.

**Important:** Although the recovery function is given a `db` handle, you should be careful to avoid creating a cycle from within recovery or invoking queries that may be participating in the current cycle. Attempting to do so can result in inconsistent results.

0 comments on commit 148abe3

Please sign in to comment.