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

Give an example of Future in scala #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chenweisomebody126
Copy link

What type of PR is this?

  • enhancement

What problem(s) does this PR solve?

Description:

Introduce Future

How do you solve it?

@CLAassistant
Copy link

CLAassistant commented Jun 15, 2023

CLA assistant check
All committers have signed the CLA.

@chenweisomebody126
Copy link
Author

@wey-gu This is an example of what I mean by using Future in scala .

@Nicole00
Copy link
Contributor

HI @chenweisomebody126 , thanks for your pr with the Example of Future. What's the meaning to use Future in this Nebula2Nebula example?

@jxnu-liguobin
Copy link

HI @chenweisomebody126 , thanks for your pr with the Example of Future. What's the meaning to use Future in this Nebula2Nebula example?

These three futures will be parallel

    val tagsFt = Future(metaClient.getTags(space))
    val edgesFt = Future(metaClient.getEdges(space))
    val partitionsFt = Future(metaClient.getPartsAlloc(space)).map(_.size())

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

Successfully merging this pull request may close these issues.

4 participants