Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
doTTTTT authored Aug 12, 2024
1 parent 5491cfe commit e27571c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ lorraine = { module = "io.github.dottttt.lorraine:lorraine", version.ref = "lorr

#### Initialization

Initialize Lorraine with workers.

```kotlin
const val GET_WORKER = "GET_WORKER"

Expand All @@ -29,6 +31,8 @@ lorraine {
}
```

Create workers by extending `WorkLorraine`

```kotlin
class GetWorker : WorkLorraine() {

Expand All @@ -40,6 +44,8 @@ class GetWorker : WorkLorraine() {
}
```

Launch your worker

```kotlin
Lorraine.enqueue(
uniqueId = "UNIQUE_ID",
Expand Down

0 comments on commit e27571c

Please sign in to comment.