Skip to content

Library to talk about things that look like promises if you squint#26909

Merged
ctiller merged 11 commits intogrpc:masterfrom
ctiller:promise-like
Aug 9, 2021
Merged

Library to talk about things that look like promises if you squint#26909
ctiller merged 11 commits intogrpc:masterfrom
ctiller:promise-like

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented Aug 6, 2021

@ctiller ctiller requested a review from veblush August 6, 2021 04:54
@ctiller ctiller added the release notes: no Indicates if PR should not be in release notes label Aug 6, 2021
@ctiller ctiller removed the request for review from veblush August 6, 2021 20:52
@ctiller ctiller requested a review from ananda1066 August 7, 2021 04:46
// PromiseLike helps us deal with functors that return immediately.
// PromiseLike<F> if F returns Poll<T> is basically a no-op, where-as if F
// returns anything else, PromiseLike wraps the return of F to return a ready
// value immediately.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I exactly understand what "wraps the return of F to return a ready value immediately" means? What does it do with the return value of F? And why is it called PromiseLike?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried to write a better comment... wdyt?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is a lot more descriptive :)

@ctiller ctiller merged commit 8d5fea4 into grpc:master Aug 9, 2021
dennycd pushed a commit to dennycd/grpc that referenced this pull request Aug 10, 2021
…rpc#26909)

* Poll type for promises library

* Library to talk about things that look like promises if you squint

* build

* Changes to sync required for promise activities

* sanitized

* remove bad comment

* better comment
Vignesh2208 pushed a commit to Vignesh2208/grpc that referenced this pull request Aug 20, 2021
…rpc#26909)

* Poll type for promises library

* Library to talk about things that look like promises if you squint

* build

* Changes to sync required for promise activities

* sanitized

* remove bad comment

* better comment
lidizheng pushed a commit to lidizheng/grpc that referenced this pull request Sep 23, 2021
…rpc#26909)

* Poll type for promises library

* Library to talk about things that look like promises if you squint

* build

* Changes to sync required for promise activities

* sanitized

* remove bad comment

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

Labels

release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants