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

Exist within a long living process #10

Open
maedi opened this issue Mar 14, 2021 · 0 comments
Open

Exist within a long living process #10

maedi opened this issue Mar 14, 2021 · 0 comments

Comments

@maedi
Copy link
Collaborator

maedi commented Mar 14, 2021

Problem

How did I build Reflekt? By running a small test script again and again.
How did I determine when a reflection starts and ends? When the script starts and finishes.
A real application is not like that, it's a server like process that keeps handling new requests.

Solution

We need to figure out when one set of actions end and another set of actions start. This can be done by keeping track of actions and deducing start_actions and stop_actions.

An action is a start action when:

  • This is the first action ever called in a process. In this situation the ActionStack is empty
  • Need more...

An action is a stop action when:

  • The action called just before it is a start action
  • Need more...
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

No branches or pull requests

1 participant