dispatchers

A simple Kotlin multi-platform wrapper around the Kotlin Coroutine Dispatchers object.

https://github.com/chrynan/dispatchers

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.1%) to scientific vocabulary

Keywords

dispatchers kotlin kotlin-coroutine-dispatchers kotlin-coroutines kotlin-coroutines-library kotlin-library
Last synced: 6 months ago · JSON representation ·

Repository

A simple Kotlin multi-platform wrapper around the Kotlin Coroutine Dispatchers object.

Basic Info
  • Host: GitHub
  • Owner: chRyNaN
  • License: apache-2.0
  • Language: Kotlin
  • Default Branch: master
  • Homepage:
  • Size: 346 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 7
Topics
dispatchers kotlin kotlin-coroutine-dispatchers kotlin-coroutines kotlin-coroutines-library kotlin-library
Created over 5 years ago · Last pushed about 2 years ago
Metadata Files
Readme Funding License Code of conduct Citation Codeowners

README.md

presentation

dispatchers

A simple Kotlin multi-platform wrapper around the Kotlin Coroutine Dispatchers object. Providing fall backs when a CoroutineDispatcher isn't available for a target platform.

GitHub tag (latest by date)

kotlin withContext(Dispatchers.PlatformIO) { ... }

Getting Started 🏁

The library is provided through Repsy. Refer to the releases for the latest version.
GitHub tag (latest by date)

Repository

groovy repositories { maven { url "https://repo.repsy.io/mvn/chrynan/public" } }

Dependencies

groovy implementation "com.chrynan.dispatchers:dispatchers:$VERSION"

Usage 👨‍💻

This library provides a Dispatchers.PlatformIO property in the common source set. Simply use that, or if needed, you can access all the CoroutineDispatchers via the dispatchers top-level object. Then use the available dispatchers:

kotlin launch(dispatchers.main) { withContext(dispatchers.io) { ... } withContext(dispatchers.default) { ... } withContext(dispatchers.unconfined) { ... } withContext(dispatchers.ui) { ... } }

Since CoroutineDispatchers is an interface, it is easy to create an implementation or mock the component for testing purposes.

Documentation 📃

Have a look at the docs folder for documentation and more information about usage.

Security 🛡️

For security vulnerabilities, concerns, or issues, please responsibly disclose the information either by opening a public GitHub Issue or reaching out to the project owner.

Contributing ✍️

Outside contributions are welcome for this project. Please follow the code of conduct and coding conventions when contributing. If contributing code, please add thorough documents. and tests. Thank you!

Sponsorship ❤️

Support this project by becoming a sponsor of my work! And make sure to give the repository a ⭐

License ⚖️

``` Copyright 2021 chRyNaN

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```

Owner

  • Name: Christopher
  • Login: chRyNaN
  • Kind: user
  • Location: Austin, TX
  • Company: Starry

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
    - family-names: "Keenan"
      given-names: "Christopher"
      alias: chRyNaN
      website: "https://chrynan.codes"
contact:
    - family-names: "Keenan"
      given-names: "Christopher"
      alias: chRyNaN
      website: "https://chrynan.codes"
title: "dispatchers"
type: "software"
abstract: "A simple Kotlin multi-platform wrapper around the Kotlin Coroutine Dispatchers object."
license: Apache-2.0
keywords:
    - kotlin
    - coroutines
    - presentation
    - "kotlin coroutines"
    - "kotlin-coroutines"
    - kotlinx
    - dispatchers
    - "kotlin multiplatform"
repository-code: "https://github.com/chRyNaN/dispatchers"
url: "https://github.com/chRyNaN/dispatchers"

GitHub Events

Total
Last Year

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 32
  • Total Committers: 3
  • Avg Commits per committer: 10.667
  • Development Distribution Score (DDS): 0.219
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Chris c****n@s****m 25
Chris Keenan c****n@p****e 5
Chris c****n@p****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago


Dependencies

.github/workflows/build.yml actions
  • actions/checkout v1 composite
  • actions/setup-java v3 composite
.github/workflows/greetings.yml actions
  • actions/first-interaction v1 composite
.github/workflows/publish.yml actions
  • actions/checkout v1 composite
  • actions/setup-java v3 composite
.github/workflows/refreshVersions.yml actions
  • EndBug/add-and-commit v9 composite
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • gradle/gradle-build-action v2 composite
  • peterjgrainger/action-create-branch v2.2.0 composite
  • repo-sync/pull-request v2 composite
build.gradle.kts maven
buildSrc/build.gradle.kts maven
dispatchers/build.gradle.kts maven