kurtlawrence / papyrus

(Rust) repl
MIT License
440 stars 14 forks source link

Access to `ReplData` and `Data` concurrently action #60

Closed kurtlawrence closed 4 years ago

kurtlawrence commented 4 years ago

https://github.com/kurtlawrence/papyrus/blob/b0aa9dc53df1328496886fbd945ee3a6f9629c63/src/repl/eval.rs#L201-L207

It would be good to add extra information that doing an action on the data D will lock. It might be possible to just add the ReplData reference to ActionOnAppData, rather than creating another variant which captures the two.