Skip to content

Futures are used to store the return values from RPC calls. #2

Open
@hypercube-lab

Description

@hypercube-lab

The accountant stub routines are all contained inside a single block. That's OK for the time being, but we'll want to switch to all async calls as soon as possible. For now, wrapping each return value in a future and updating the callers (most of whom are in client-demo.rs) to utilize them is a good first step toward getting there.

See https://crates.io/crates/futures for further information.

It's worth noting that the tokio framework reexports the same future library, which means that if we utilize it as our async runtime, the move will be seamless.

Activity

added this to the Testnet milestone on Sep 8, 2021
agnitazudkll

agnitazudkll commented on Sep 9, 2021

@agnitazudkll
Contributor

What version of futures were you considering?

agnitazudkll

agnitazudkll commented on Sep 9, 2021

@agnitazudkll
Contributor

I saw it and it includes a ton of major breaking changes from 0.1.21, so I wanted to see what others thought.

agnitazudkll

agnitazudkll commented on Sep 9, 2021

@agnitazudkll
Contributor

it's definitely an improvement but a little tricky since it's a whole new framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Futures are used to store the return values from RPC calls. · Issue #2 · hypercube-lab/hypercube