Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Decreased boilerplate for XHPAsync

Compare
Choose a tag to compare
@fredemmott fredemmott released this 01 May 16:59
· 1 commit to 2.0.x since this release

Using the XHPAsync now implicitly marks your class as implementing XHPAwaitable.

Before:

class :foo extends :x:element  implements XHPAwaitable {
  use XHPAsync;
}

After:

class :foo extends :x:element {
  use XHPAsync;
}

You can still explicitly mark your classes as implementing XHPAwaitable if you prefer, or for backwards compatibility.