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

Rc1 add async examples #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

carlosalberto
Copy link
Owner

No description provided.

carlosalberto and others added 6 commits September 13, 2017 22:19
Part of handling the examples related to multiple
asynchronous callbacks, an AutoFinishScopeManager
has been included, which mimics the ref counting
in the previous ActiveSpan approach.
This includes execution flow similar to:
* Actor ask/tell
* Promises with callbacks
* Work interleaved on a thread using suspend/resume.

The implementations of these execution models are obviously very simplistic, but intended to emphasize the tracing aspect.

These tests also make heavy use of the Phaser in order to insure deterministic execution of the tests for multi-threaded execution.  Hopefully this does not detract from the examples too much.
* ThreadLocalScopeManager (without Continuation) where it's
  possible to predict where the Span should be finished.
* AutoCloseScopeManager, where a ref-counting scenario
  is needed.
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