jaemk / cached

Rust cache structures and easy function memoization
MIT License
1.58k stars 96 forks source link

Add support for async functions to proc macro and async_std/tokio examples #34

Closed csos95 closed 4 years ago

csos95 commented 4 years ago

this fixes #30

jaemk commented 4 years ago

on fire today! I'm not super familiar with how async-std and tokio interact. Is async-std's Mutex compatible with tokio's runtime (seems like it is if your example works)?

csos95 commented 4 years ago

There are some issue with specific structs from async-std/tokio that are difficult to use in the others ecosystem, but luckily the Mutex is not one of them.

jaemk commented 4 years ago

nice

tqwewe commented 3 years ago

Does this work with cached_key_result!? I'm having some issues getting it to work.