grpc / grpc/grpc-web

Add AbortSignal support to unary calls

Open
#946 5 comments 8 reactions 1 assignee Claimed by @sampajano View on GitHub
enhancement
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

With callback client I can do

```ts
const call = client.method(request, meta, cb)
```

While Promise client doesn't give that `call` but I need it to `call.cancel()` in the Timeout

---

BTW another question - Am I have to do that? I want to cancel my call if it exceeded the timeout, but in my `meta` I have `deadline`. Will grpc-web cancel my call for me or I have to do it manually? If it does, will promice reject with timeout error?

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.