feat(tazjin/generator-example): add an example for genawaiter crate

This is an experiment for tvix-eval.

Change-Id: Ic752b5b125cefefeb1343e38a70beb364478e6eb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8131
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2023-02-17 01:09:51 +03:00 committed by tazjin
parent f2624f1028
commit 006ab204fa
5 changed files with 260 additions and 0 deletions

View file

@ -0,0 +1,11 @@
generator-example
=================
This is an experiment with the [`genawaiter`][] crate, to see if it
could be suitable for dealing with the execution flattening problem in
Tvix.
It constructs a dummy example that is similar to some of the problems
we have in Tvix that require generator-like thunk forcing.
[`genawaiter`]: https://docs.rs/genawaiter/latest/genawaiter/index.html