Skip to content

Composability example/advice #306

Answered by disruptek
hugosenari asked this question in Q&A
Discussion options

You must be logged in to vote

All continuations can be treated as type Continuation and will work as expected under any agnostic dispatcher, such as the one supplied in cps as trampoline. If you want to perform custom dispatch on your custom Continuation types, you can do that instead, by bouncing each continuation yourself and implementing any custom logic at that time. This doesn't need to be a main loop, necessarily. You can run continuations as little or as much as you please, at any point in the program.

As far as examples go, I think what you're wanting is something that uses disparate Continuation types, but in fact, all of our continuations vary in underlying type -- this is an implementation detail of our tra…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blackmius
Comment options

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