Skip to content

How to use Deferred #11

@Enorio

Description

@Enorio

I'm having trouble understanding the flow of the Deferred class.
For example, this API is used in the AsyncKudu. How can I do this method?

public void foo(){
    //verify that the table exists;
    ...
    //if exists, open table;
    ...
    //write on the table;
   ...
}

More specifically, the AsyncKuduClient has this method to see if a table exists:

Deferred<Boolean> aux = kuduClient.tableExists(tableName);

What can I do after this?
And after that, how can I call this method asynchronously?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions