Skip to content

Rc1 add async examples#1

Open
carlosalberto wants to merge 6 commits intomasterfrom
rc1_add_async_examples
Open

Rc1 add async examples#1
carlosalberto wants to merge 6 commits intomasterfrom
rc1_add_async_examples

Conversation

@carlosalberto
Copy link
Copy Markdown
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