Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
chore: add Scheduler#bulkSchedule, fix spotless, and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Nov 9, 2021
1 parent f860339 commit 4c4b1bd
Show file tree
Hide file tree
Showing 53 changed files with 2,757 additions and 2,630 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
I built this library as a personal usage library to handling schedulers within the applications
I am creating, and it'll be easier if I put it in a library that I can reuse.

I currently use **Haru** with my private Discord bot, Noel.

## Usage
```kotlin
class MyJob: AbstractJob(
Expand Down Expand Up @@ -44,7 +46,7 @@ I'd say around ~3 hours :)
## Installation
> Documentation: https://haru.floofy.dev
>
> Version: 1.2.0
> Version: 1.3.0
## Gradle
### Kotlin DSL
Expand Down
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import java.util.Properties
import java.util.Date

plugins {
id("com.diffplug.spotless") version "5.14.0"
id("com.diffplug.spotless") version "6.0.0"
id("org.jetbrains.dokka") version "1.5.31"
kotlin("jvm") version "1.5.10"
kotlin("jvm") version "1.5.31"
`maven-publish`
}

val current = "1.2.0"
val current = "1.3.0"
group = "dev.floofy"
version = current

Expand All @@ -42,9 +42,9 @@ repositories {

dependencies {
// Kotlin libraries
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
api("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.5.2")
implementation(kotlin("stdlib", "1.5.21"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt")
api("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.5.2-native-mt")
implementation(kotlin("stdlib", "1.5.31"))

// Cron Support
implementation("com.cronutils:cron-utils:9.1.5")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>AbstractJob</title>
<link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script> </head>
<body>
<div id="container">
<div id="leftColumn"><a href="../../../index.html">
<div id="logo"></div>
</a>
<div id="paneSearch"></div>
<div id="sideMenu"></div>
</div>
<div id="main">
<div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Haru::dev.floofy.haru.abstractions/AbstractJob/AbstractJob/#kotlin.String#kotlin.String/PointingToDeclaration//-267411916">
<div class="navigation-wrapper" id="navigation-wrapper">
<div class="breadcrumbs"><a href="../../../index.html">Haru</a>/<a href="../index.html">dev.floofy.haru.abstractions</a>/<a href="index.html">AbstractJob</a>/<a href="-abstract-job.html">AbstractJob</a></div>
<div class="pull-right d-flex">
<div id="searchBar"></div>
</div>
</div>
<div class="cover ">
<h1 class="cover"><span>Abstract</span><wbr></wbr><span>Job</span></h1>
</div>
<div class="divergent-group" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="with-platform-tags"><span class="pull-right"></span></div>

<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":dokkaHtml/main"><div class="symbol monospace">fun <a href="-abstract-job.html">AbstractJob</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, expression: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<h2 class="">Parameters</h2><div data-togglable="Parameters"><div class="platform-hinted WithExtraAttributes" data-platform-hinted="data-platform-hinted" data-togglable="Parameters"><div class="content sourceset-depenent-content" data-active="" data-togglable=":dokkaHtml/main"><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex">name</span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The name of the job</p></div></div></div></div></div><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex">expression</span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The expression to use when scheduling</p></div></div></div></div></div></div></div></div></div></div></div>
<h2 class="">Sources</h2>
<div class="table" data-togglable="Sources"><a data-name="%5Bdev.floofy.haru.abstractions%2FAbstractJob%2FAbstractJob%2F%23kotlin.String%23kotlin.String%2FPointingToDeclaration%2F%5D%2FSource%2F-267411916" anchor-label="https://github.com/auguwu/Haru/tree/master/src/main/kotlin/dev/floofy/haru/abstractions/AbstractJob.kt#L49" id="%5Bdev.floofy.haru.abstractions%2FAbstractJob%2FAbstractJob%2F%23kotlin.String%23kotlin.String%2FPointingToDeclaration%2F%5D%2FSource%2F-267411916" data-filterable-set=":dokkaHtml/main"></a>
<div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="https://github.com/auguwu/Haru/tree/master/src/main/kotlin/dev/floofy/haru/abstractions/AbstractJob.kt#L49">jvm source</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Bdev.floofy.haru.abstractions%2FAbstractJob%2FAbstractJob%2F%23kotlin.String%23kotlin.String%2FPointingToDeclaration%2F%5D%2FSource%2F-267411916"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div></div>
</div>
</div>
</div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
</div>
</div>
</body>
</html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>AbstractJob</title>
<link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script> </head>
<body>
<div id="container">
<div id="leftColumn"><a href="../../../index.html">
<div id="logo"></div>
</a>
<div id="paneSearch"></div>
<div id="sideMenu"></div>
</div>
<div id="main">
<div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Haru::dev.floofy.haru.abstractions/AbstractJob/AbstractJob/#kotlin.String#kotlin.String/PointingToDeclaration//769193423">
<div class="navigation-wrapper" id="navigation-wrapper">
<div class="breadcrumbs"><a href="../../../index.html">Haru</a>/<a href="../index.html">dev.floofy.haru.abstractions</a>/<a href="index.html">AbstractJob</a>/<a href="-abstract-job.html">AbstractJob</a></div>
<div class="pull-right d-flex">
<div id="searchBar"></div>
</div>
</div>
<div class="cover ">
<h1 class="cover"><span>Abstract</span><wbr></wbr><span><span>Job</span></span></h1>
</div>
<div class="divergent-group" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="with-platform-tags"><span class="pull-right"></span></div>

<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":dokkaHtml/main"><div class="symbol monospace">fun <a href="-abstract-job.html">AbstractJob</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, expression: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<h2 class="">Parameters</h2><div data-togglable="Parameters"><div class="platform-hinted WithExtraAttributes" data-platform-hinted="data-platform-hinted" data-togglable="Parameters"><div class="content sourceset-depenent-content" data-active="" data-togglable=":dokkaHtml/main"><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><span><span>name</span></span></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The name of the job</p></div></div></div></div></div><div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><span><span>expression</span></span></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The expression to use when scheduling</p></div></div></div></div></div></div></div></div></div></div></div>
<h2 class="">Sources</h2>
<div class="table" data-togglable="Sources"><a data-name="315842919%2FSource%2F769193423" anchor-label="https://github.com/auguwu/Haru/tree/master/src/main/kotlin/dev/floofy/haru/abstractions/AbstractJob.kt#L49" id="315842919%2FSource%2F769193423" data-filterable-set=":dokkaHtml/main"></a>
<div class="table-row" data-filterable-current=":dokkaHtml/main" data-filterable-set=":dokkaHtml/main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="https://github.com/auguwu/Haru/tree/master/src/main/kotlin/dev/floofy/haru/abstractions/AbstractJob.kt#L49">jvm source</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="315842919%2FSource%2F769193423"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div></div>
</div>
</div>
</div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
</div>
</div>
</body>
</html>

Loading

0 comments on commit 4c4b1bd

Please sign in to comment.