Kimundi / owning-ref-rs

A library for creating references that carry their owner with them.
MIT License
361 stars 50 forks source link

Add support for async functions to OwningHandle #68

Open blefevre opened 4 years ago

blefevre commented 4 years ago

Adds new_with_async_fn and try_new_async static functions to OwningHandle to support handle creation by async functions. These are gated behind a new async feature.

Note that async closures are currently unstable, so unlike their synchronous counterparts these functions will have to be passed a regular function in stable rust.

Closes: #67

Stargateur commented 4 years ago

I need to try this :p thx a lot.