Giter VIP home page Giter VIP logo

Comments (3)

fMeow avatar fMeow commented on May 30, 2024

For async/await support, I haved tried a little bit and find it tedious to write almost the same code for both async and sync with only difference in the http request details. And I have wrote a crate named maybe-async to provide a possible non-trival way to toggle between sync and async with a feature gate. In this way, I can dissocaite the http request crate as well as arango types and API.

This is planning in the near future, maybe months later.

But, what do you mean by using async-std? AFAIK, the async-std crate provides only low level equivalent to rust std. And there is almost no upstream library implements web request by manual handling of raw socket bytes.

from arangors.

fMeow avatar fMeow commented on May 30, 2024

In version 0.3, the async syntax is supported. If you want to stick with async-std, try surf_async feature and disable default features. Then all connection to arangoDB are sended with surf.

Or you can implement a custom client, if you don't like surf and wanna use another HTTP client.

from arangors.

prabirshrestha avatar prabirshrestha commented on May 30, 2024

This is great. Thanks.

from arangors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.