Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async render interface #15

Open
sgammon opened this issue Aug 22, 2019 · 0 comments
Open

Async render interface #15

sgammon opened this issue Aug 22, 2019 · 0 comments
Labels
type: enhancement New feature or request

Comments

@sgammon
Copy link
Contributor

sgammon commented Aug 22, 2019

Is there any way to invoke the async eventloop in a render() call? It seems like it is synchronous within the scope of view rendering.

Soy, for instance, supports "continuations" during render. You can pass in a Future<X> for any template context parameter X. Rendering occurs until an async value is needed, at which point, the render process bails out in a way that is "resumable," so to speak.

Before resuming this render, the simplest option is simply waiting on the Future, which is what I do now in the Soy-related PR. However, it would be extra cool to have the ability to yield to the reactor, so that it can process other things or otherwise know when the view renderer is waiting on some future value.

This was referenced Aug 22, 2019
@ilopmar ilopmar added the type: enhancement New feature or request label Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants