• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. Loom
  3. Main
  4. Structured Concurrency

Page History

Versions Compared

Old Version 22

changes.mady.by.user Alan Bateman

Saved on Jun 27, 2019

compared with

New Version 23

changes.mady.by.user Alan Bateman

Saved on Jun 27, 2019

  • Previous Change: Difference between versions 21 and 22
  • Next Change: Difference between versions 23 and 24
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
    void x() {
        try (var scope1 = FiberScope.open()) {
            var fiber1 = scope1.schedule(() -> foo());
            var fiber2 = scope1.schedule(() -> bar());
        }
    }
    void foo() {
        try (var scope2 = FiberScope.open()) {
            scope2.schedule(() -> task());
            scope2.schedule(() -> task());
        }
    }
    void bar() {
        try (var scope3 = FiberScope.cancellableopen()) {
            scope3.schedule(() -> task());
            scope3.schedule(() -> task());
        }
    }    

...

Overview
Content Tools
ThemeBuilder

Terms of Use • License: GPLv2 • Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Adaptavist ThemeBuilder Powered by Atlassian Confluence 7.4.13
  • Adaptavist ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Adaptavist ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 309, "requestCorrelationId": "ea9a5499b4909919"}