# Scheduler

<div id="introduction"></div>

## Introduction

Nylo allows you to schedule tasks in your app to happen once, daily, or after a specific date.

After reading this documentation, you will learn how to schedule tasks in your app.

<div id="schedule-once"></div>

## Schedule Once

You can schedule a task to run once using the `Nylo.scheduleOnce` method.

A simple example of how to use this method:

```dart
Nylo.scheduleOnce('onboarding_info', () {
    print("Perform code here to run once");
});
```

<div id="schedule-once-after-date"></div>

## Schedule Once After Date

You can schedule a task to run once after a specific date using the `Nylo.scheduleOnceAfterDate` method.

A simple example of how to use this method:

```dart
Nylo.scheduleOnceAfterDate('app_review_rating', () {
    print('Perform code to run once after DateTime(2025, 04, 10)');
}, date: DateTime(2025, 04, 10));
```

<div id="schedule-once-daily"></div>

## Schedule Once Daily

You can schedule a task to run once daily using the `Nylo.scheduleOnceDaily` method.

A simple example of how to use this method:

```dart
Nylo.scheduleOnceDaily('free_daily_coins', () {
    print("Perform code to run once daily");
});
```
