Skip to content

Commit

Permalink
Tasks: Make duration and pollingSeconds mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Jul 17, 2023
1 parent 05a17bc commit c8e4c7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ import kotlin.time.TimeSource
* @param repeat Whether the task should repeat after completion. `false` by default.
*/
public open class Task(
public open val duration: Duration,
public open var duration: Duration,
public open val callback: suspend () -> Unit,
public open val pollingSeconds: Long = 1,
public open var pollingSeconds: Long = 1,
public open val coroutineScope: CoroutineScope = com.kotlindiscord.kord.extensions.utils.getKoin().get<Kord>(),
public open val parent: Scheduler? = null,

Expand Down

0 comments on commit c8e4c7a

Please sign in to comment.