# SchedulerLike

## Interfaces de Planificador

```typescript
interface SchedulerLike {
  now(): number;
  schedule<T>(
    work: (this: SchedulerAction<T>, state?: T) => void,
    delay?: number,
    state?: T
  ): Subscription;
}
```

## Implementaciones de Clase

[Scheduler](https://www.rxjs.es/api/indice/schedulerlike)

## Métodos

| now()                                                                                                                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------- |
| <h4>Firma</h4><p><code>now(): number</code></p><h4>Parámetros</h4><p>No recibe ningún parámetro.</p><h4>Retorna</h4><p><code>number</code></p> |

| schedule()                                                                                                                                                                                               |                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| <h4>Firma</h4><p><code>schedule(work: (this: SchedulerAction, state?: T) => void, delay?: number, state?: T): Subscription</code></p><h4>Parámetros</h4><h4>Retorna</h4><p><code>Subscription</code></p> |                                                                |
| work                                                                                                                                                                                                     | Tipo: `(this: SchedulerAction, state?: T) => void`.            |
| delay                                                                                                                                                                                                    | Opcional. El valor por defecto es `undefined`. Tipo: `number`. |
| state                                                                                                                                                                                                    | Opcional. El valor por defecto es `undefined`. Tipo: `T`.      |

## Recursos adicionales

[![Source code](https://github.com/puntotech/rxjs-docu/blob/master/doc/api/index/assets/icons/source-code.png)](https://github.com/ReactiveX/rxjs/blob/6.5.5/src/internal/types.ts#L90-L96)

[Documentación oficial en inglés](https://rxjs.dev/api/index/interface/SchedulerLike)
