Open 0xF6 opened 3 years ago
public class Foo { public sync fn(): void { } }
// non-static variant public class Foo { public fn(): void { Synchronicity.For(this); try { // ... } finally { Synchronicity.Release(this); } } } // static variant public static class Foo { private static guarder: Object = new Object(); public static fn(): void { Synchronicity.For(guarder); try { // ... } finally { Synchronicity.Release(guarder); } } }
define sync in method declaration
Ishtar view (transformation result)