17.1.4 • Published 5 years ago

@the-/mixin-scene v17.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@the-/mixin-scene

npm Version

Mixins for the-scene

Installation

$ npm install @the-/mixin-scene --save

Usage

'use strict'
const { withBusy } = require('@the-/mixin-scene')
const { TheScene } = require('@the-/scene')

async function tryExample() {
  const MyScene = withBusy(
    class MySceneBase extends TheScene {
      async doSomething() {
        await this.busyWhile(async () => {
          /* ... */
        })
      }
    },
  )
  const scene = new MyScene()
  await scene.doSomething()
}

tryExample().catch((err) => console.error(err))

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Links

17.1.4

5 years ago

17.1.3

5 years ago

17.1.2

5 years ago

17.1.1

5 years ago

17.0.0

5 years ago

16.0.1

5 years ago

16.0.0

5 years ago

15.4.6

5 years ago

15.4.4

5 years ago

15.4.3

5 years ago

15.4.2

5 years ago

15.4.0

5 years ago

15.2.2

5 years ago

15.2.1

5 years ago

15.2.0

5 years ago

15.1.4

5 years ago

15.1.3

5 years ago

4.0.10

5 years ago