# Mixin: SignalEmitter

## coreutils. SignalEmitter

Mixin thats makes parent as signal sender

### Methods

#### destroy()

  Destroy signal

#### dispatch(event, data, delay)

  Dispatch event, if delay is specificed then it will be dispatched after delay

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `event` | string |
  `data` | * | event data
  `delay` | number | * | delay in milisecounds

  ##### Returns:

  returns self for chaining
  Type
    object

#### on()

  Listen to events. Events can be definead as String, Array of strings, or ...String

  ##### Returns:

  listener object
  Type
    coreutils.Signal.SignalListener

#### once()

  Listen to events once. This listenr will be destroyed after first dispatch Events can be definead as String, Array of strings, or ...String

  ##### Returns:

  listener object
  Type
    coreutils.Signal.SignalListener

#### remove(listener)

  Remove listener object from signal

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `listener` | coreutils.Signal.SignalListener | listener to remove

  ##### Returns:

  returns self for chaining
  Type
    object

#### removeAll()

  Remove all listeners

#### Search results