FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make waiting for callback result optional by srajko · Pull Request #1208 · nodegit/nodegit · GitHub

Repository navigation

Make waiting for callback result optional - #1208

Merged
johnhaley81 merged 3 commits into
nodegit:masterfrom
srajko:callback-fire-forget
Feb 28, 2017
Merged

johnhaley81 merged 3 commits into
nodegit:masterfrom
srajko:callback-fire-forget

Conversation

srajko commented Jan 31, 2017

Copy link
Copy Markdown
Collaborator

No description provided.

srajko force-pushed the callback-fire-forget branch 3 times, most recently from dfb5367 to c4bda75 Compare January 31, 2017 21:38
srajko force-pushed the callback-fire-forget branch from c4bda75 to 921bf45 Compare February 13, 2017 19:12
srajko changed the title [WIP] Make waiting for callback result optional Make waiting for callback result optional Feb 24, 2017

srajko commented Feb 24, 2017

Copy link
Copy Markdown
Collaborator Author

This change allows callback properties to be given with waitForResult: false, which will schedule the callback but not wait for its result. Instead, the default callback result will be immediately returned to libgit2.

To make sure completion callbacks get executed after intermediate callbacks, their two separate queues in ThreadPool are now a single queue.

Copy link
Copy Markdown
Collaborator

Thanks @srajko this also has the nice side effect of making the code easier to read :)

johnhaley81 merged commit d329e2b into nodegit:master Feb 28, 2017
johnhaley81 deleted the callback-fire-forget branch February 28, 2017 15:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL