Function cubecl_common::reader::try_read_sync
source ยท pub fn try_read_sync<F: Future<Output = T>, T>(f: F) -> Option<T>Expand description
Read a future synchronously.
On WASM futures cannot block, so this only succeeds if the future returns immediately. otherwise this returns None.