Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async functions on docs.rs #262

Open
InAnYan opened this issue Nov 4, 2024 · 1 comment
Open

async functions on docs.rs #262

InAnYan opened this issue Nov 4, 2024 · 1 comment

Comments

@InAnYan
Copy link

InAnYan commented Nov 4, 2024

It seems that async functions on https://docs.rs/langchain-rust/latest/langchain_rust/output_parsers/struct.MarkdownParser.html are in the expanded form (impl Future, etc.).

However, on other crates docs.rs it seems that async can be handled in a less scary way https://docs.rs/ollama-rs/0.1.4/ollama_rs/struct.Ollama.html.

I wonder, why it looks like this. I think showing async fn is better than impl Future<...>

@InAnYan
Copy link
Author

InAnYan commented Nov 4, 2024

Oh, f**k, it's the async_trait and the problem is with traits... Cause async in traits is experimental

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant