Skip to content

Enabling a Capnp Server to accept parallel requests #1958

Answered by kentonv
legolas145 asked this question in Q&A
Discussion options

You must be logged in to vote

GetAutocompleteSuggestions would need to use KJ promises internally for any I/O it performs, in order to yield to the event loop while it waits.

Alternatively, you could use newPromiseAndCrossThreadFulfiller, and then have GetAutocompleteSuggestions run in a separate thread.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@legolas145
Comment options

@kentonv
Comment options

Answer selected by legolas145
@legolas145
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants