![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/q98XK4sKtw.png)
1·
8 months ago+1, no problems at all so far, been using them almost daily for a year now on both linux and android.
+1, no problems at all so far, been using them almost daily for a year now on both linux and android.
Well how do you want to use said get function?
let x = config.get("key").await;
So what type should x have?
Can you still hibernate and suspend?
If you wrote the type signature of
get_user
astuple[User, None] | tuple[None, Exception]
, the assertion would not be necessary and the type checker wouldn’t complain.