Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
chore: add new createThreadFactory function [extensions-kotlin]
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Jun 3, 2022
1 parent 7bda33d commit 451d746
Show file tree
Hide file tree
Showing 70 changed files with 314 additions and 50 deletions.
1 change: 1 addition & 0 deletions assets/HEADING
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* 🤹 common-utils: Common Kotlin utilities made for my personal usage.
* Copyright (c) 2021-2022 Noel <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.gradle.api.JavaVersion
/**
* Returns the current version of `commons-utils` package.
*/
val VERSION = "2.1.0.1"
val VERSION = "2.1.1"

/**
* The Java version it's being compiled to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
2 changes: 1 addition & 1 deletion docs/exposed/dev.floofy.utils.exposed/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
2 changes: 1 addition & 1 deletion docs/exposed/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
10 changes: 10 additions & 0 deletions docs/exposed/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@
</div>
</div>
</div>
<div class="sideMenuPart" id="extensions-kotlin-nav-submenu-1" pageid="extensions-kotlin::dev.floofy.utils.kotlin.threading////PointingToDeclaration//1061176768">
<div class="overview">
<span class="navButton" onclick="document.getElementById(&quot;extensions-kotlin-nav-submenu-1&quot;).classList.toggle(&quot;hidden&quot;);"><span class="navButtonContent"></span></span><a href="../extensions-kotlin/dev.floofy.utils.kotlin.threading/index.html"><span>dev.</span><wbr><span>floofy.</span><wbr><span>utils.</span><wbr><span>kotlin.</span><wbr><span>threading</span></a>
</div>
<div class="sideMenuPart" id="extensions-kotlin-nav-submenu-1-0" pageid="extensions-kotlin::dev.floofy.utils.kotlin.threading//createThreadFactory/#kotlin.String#kotlin.Int?#java.lang.ThreadGroup/PointingToDeclaration//1061176768">
<div class="overview">
<a href="../extensions-kotlin/dev.floofy.utils.kotlin.threading/create-thread-factory.html"><span>create</span><wbr><span>Thread</span><wbr><span><span>Factory()</span></span></a>
</div>
</div>
</div>
</div>
<div class="sideMenuPart" id="gradle-utils-nav-submenu" pageid="gradle-utils::////PointingToDeclaration//1225119677">
<div class="overview">
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions-koin/dev.floofy.utils.koin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions-koin/dev.floofy.utils.koin/inject.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions-koin/dev.floofy.utils.koin/retrieve.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions-koin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
10 changes: 10 additions & 0 deletions docs/extensions-koin/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@
</div>
</div>
</div>
<div class="sideMenuPart" id="extensions-kotlin-nav-submenu-1" pageid="extensions-kotlin::dev.floofy.utils.kotlin.threading////PointingToDeclaration//1061176768">
<div class="overview">
<span class="navButton" onclick="document.getElementById(&quot;extensions-kotlin-nav-submenu-1&quot;).classList.toggle(&quot;hidden&quot;);"><span class="navButtonContent"></span></span><a href="../extensions-kotlin/dev.floofy.utils.kotlin.threading/index.html"><span>dev.</span><wbr><span>floofy.</span><wbr><span>utils.</span><wbr><span>kotlin.</span><wbr><span>threading</span></a>
</div>
<div class="sideMenuPart" id="extensions-kotlin-nav-submenu-1-0" pageid="extensions-kotlin::dev.floofy.utils.kotlin.threading//createThreadFactory/#kotlin.String#kotlin.Int?#java.lang.ThreadGroup/PointingToDeclaration//1061176768">
<div class="overview">
<a href="../extensions-kotlin/dev.floofy.utils.kotlin.threading/create-thread-factory.html"><span>create</span><wbr><span>Thread</span><wbr><span><span>Factory()</span></span></a>
</div>
</div>
</div>
</div>
<div class="sideMenuPart" id="gradle-utils-nav-submenu" pageid="gradle-utils::////PointingToDeclaration//1225119677">
<div class="overview">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>createThreadFactory</title>
<link href="../../images/logo-icon.svg" rel="icon" type="image/svg">
<script>var pathToRoot = "../../";</script> <script>const storage = localStorage.getItem("dokka-dark-mode")
const savedDarkMode = storage ? JSON.parse(storage) : false
if(savedDarkMode === true){
document.getElementsByTagName("html")[0].classList.add("theme-dark")
}</script>
<script type="text/javascript" src="../../scripts/sourceset_dependencies.js" async></script>
<link href="../../styles/style.css" rel="Stylesheet">
<link href="../../styles/jetbrains-mono.css" rel="Stylesheet">
<link href="../../styles/main.css" rel="Stylesheet">
<link href="../../styles/prism.css" rel="Stylesheet">
<link href="../../styles/logo-styles.css" rel="Stylesheet">
<script type="text/javascript" src="../../scripts/clipboard.js" async></script>
<script type="text/javascript" src="../../scripts/navigation-loader.js" async></script>
<script type="text/javascript" src="../../scripts/platform-content-handler.js" async></script>
<script type="text/javascript" src="../../scripts/main.js" defer></script>
<script type="text/javascript" src="../../scripts/prism.js" async></script></head>
<body>
<div class="navigation-wrapper" id="navigation-wrapper">
<div id="leftToggler"><span class="icon-toggler"></span></div>
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
</div>
</div>
<div id="container">
<div id="leftColumn">
<div id="sideMenu"></div>
</div>
<div id="main">
<div class="main-content" id="content" pageids="extensions-kotlin::dev.floofy.utils.kotlin.threading//createThreadFactory/#kotlin.String#kotlin.Int?#java.lang.ThreadGroup/PointingToDeclaration//1061176768">
<div class="breadcrumbs"><a href="../index.html">extensions-kotlin</a><span class="delimiter">/</span><a href="index.html">dev.floofy.utils.kotlin.threading</a><span class="delimiter">/</span><a href="create-thread-factory.html">createThreadFactory</a></div>
<div class="cover ">
<h1 class="cover"><span>create</span><wbr><span>Thread</span><wbr><span><span>Factory</span></span></h1>
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":extensions-kotlin:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="create-thread-factory.html"><span class="token function">createThreadFactory</span></a><span class="token punctuation">(</span><span class="parameters wrapped"><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;name<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token punctuation">, </span></span><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;priority<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;threadGroup<span class="token operator">: </span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ThreadGroup.html">ThreadGroup</a><span class="token operator"> = </span>Thread.currentThread().threadGroup</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadFactory.html">ThreadFactory</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><p class="paragraph">Creates a new <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadFactory.html">ThreadFactory</a> object with a specified <a href="create-thread-factory.html">name</a>.</p><h4 class="">Return</h4><p class="paragraph">a new <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadFactory.html">ThreadFactory</a> object.</p><h2 class="">Parameters</h2><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><div class="table-row" data-filterable-current=":extensions-kotlin:dokkaHtmlPartial/main" data-filterable-set=":extensions-kotlin:dokkaHtmlPartial/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span><span>name</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The name of the thread factory.</p></div></div></div></div></div><div class="table-row" data-filterable-current=":extensions-kotlin:dokkaHtmlPartial/main" data-filterable-set=":extensions-kotlin:dokkaHtmlPartial/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span><span>priority</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The priority to set</p></div></div></div></div></div><div class="table-row" data-filterable-current=":extensions-kotlin:dokkaHtmlPartial/main" data-filterable-set=":extensions-kotlin:dokkaHtmlPartial/main"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span>thread</span><wbr><span><span>Group</span></span></div></span></div><div><div class="title"><div data-togglable="Parameters"><p class="paragraph">The thread group to use.</p></div></div></div></div></div></div></div></div></div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2022 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>

Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>dev.floofy.utils.kotlin.threading</title>
<link href="../../images/logo-icon.svg" rel="icon" type="image/svg">
<script>var pathToRoot = "../../";</script> <script>const storage = localStorage.getItem("dokka-dark-mode")
const savedDarkMode = storage ? JSON.parse(storage) : false
if(savedDarkMode === true){
document.getElementsByTagName("html")[0].classList.add("theme-dark")
}</script>
<script type="text/javascript" src="../../scripts/sourceset_dependencies.js" async></script>
<link href="../../styles/style.css" rel="Stylesheet">
<link href="../../styles/jetbrains-mono.css" rel="Stylesheet">
<link href="../../styles/main.css" rel="Stylesheet">
<link href="../../styles/prism.css" rel="Stylesheet">
<link href="../../styles/logo-styles.css" rel="Stylesheet">
<script type="text/javascript" src="../../scripts/clipboard.js" async></script>
<script type="text/javascript" src="../../scripts/navigation-loader.js" async></script>
<script type="text/javascript" src="../../scripts/platform-content-handler.js" async></script>
<script type="text/javascript" src="../../scripts/main.js" defer></script>
<script type="text/javascript" src="../../scripts/prism.js" async></script></head>
<body>
<div class="navigation-wrapper" id="navigation-wrapper">
<div id="leftToggler"><span class="icon-toggler"></span></div>
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
</div>
</div>
<div id="container">
<div id="leftColumn">
<div id="sideMenu"></div>
</div>
<div id="main">
<div class="main-content" id="content" pageids="extensions-kotlin::dev.floofy.utils.kotlin.threading////PointingToDeclaration//1061176768">
<div class="breadcrumbs"><a href="../index.html">extensions-kotlin</a><span class="delimiter">/</span><a href="index.html">dev.floofy.utils.kotlin.threading</a></div>
<div class="cover ">
<h1 class="cover"><span><span>Package</span></span> <span>dev.</span><wbr><span>floofy.</span><wbr><span>utils.</span><wbr><span>kotlin.</span><wbr><span>threading</span></h1>
</div>
<div class="tabbedcontent">
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Functions">Functions</button></div>
<div class="tabs-section-body">
<h2 class="">Functions</h2>
<div class="table" data-togglable="Functions"><a data-name="1417606895%2FFunctions%2F1061176768" anchor-label="createThreadFactory" id="1417606895%2FFunctions%2F1061176768" data-filterable-set=":extensions-kotlin:dokkaHtmlPartial/main"></a>
<div class="table-row" data-filterable-current=":extensions-kotlin:dokkaHtmlPartial/main" data-filterable-set=":extensions-kotlin:dokkaHtmlPartial/main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="create-thread-factory.html"><span>create</span><wbr><span>Thread</span><wbr><span><span>Factory</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1417606895%2FFunctions%2F1061176768"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":extensions-kotlin:dokkaHtmlPartial/main"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="create-thread-factory.html"><span class="token function">createThreadFactory</span></a><span class="token punctuation">(</span><span class="parameters wrapped"><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;name<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token punctuation">, </span></span><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;priority<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter indented">&nbsp;&nbsp;&nbsp;&nbsp;threadGroup<span class="token operator">: </span><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ThreadGroup.html">ThreadGroup</a><span class="token operator"> = </span>Thread.currentThread().threadGroup</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadFactory.html">ThreadFactory</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 class="brief "><p class="paragraph">Creates a new <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadFactory.html">ThreadFactory</a> object with a specified <a href="create-thread-factory.html">name</a>.</p></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2022 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>

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="library-name">
<a href="../../index.html">
<span>commons</span> </a> </div>
<div>2.1.0.1
<div>2.1.1
</div>
<div class="pull-right d-flex">
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
Expand Down
Loading

0 comments on commit 451d746

Please sign in to comment.