Skip to content

Setting deadlines/timeouts on individual calls #16

@tav

Description

@tav

Would it be possible to add support for setting deadlines on individual calls with the dgraph-js client?

Perhaps the calls could take an optional options parameter? e.g.

await txn.mutate(mu, {deadline: 1516844615385})

As far as I can tell, the Dgraph Go client supports enforcing deadlines on individual calls, and from briefly looking at the Node.js gRPC implementation, it seems to support CallOptions with a deadline property too. So it should hopefully be just a matter of threading it through via the wrapper functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions