Code polish

master
Robinson 2022-04-03 15:06:31 +02:00
parent 3f750b8f13
commit 167f6e67c7
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
4 changed files with 34 additions and 2 deletions

View File

@ -16,6 +16,7 @@
package dorkbox.objectPool.nonBlocking
import dorkbox.objectPool.BoundedPoolObject
import dorkbox.objectPool.ObjectPool
import java.util.*
import java.util.concurrent.atomic.*
@ -26,7 +27,7 @@ import java.util.concurrent.atomic.*
* The items added to pool will never expire or be automatically garbage collected.
* The items not added back to the pool will be garbage collected
*
* See [ObjectPool.NonBlockingSoftReference] for pooled objects that will expire/GC as needed
* See [ObjectPool.nonBlockingSoftReference] for pooled objects that will expire/GC as needed
*
* @author dorkbox, llc; Abinav Janakiraman
*/

View File

@ -19,7 +19,6 @@ import dorkbox.objectPool.ObjectPool
import dorkbox.objectPool.Pool
import dorkbox.objectPool.PoolObject
import java.util.*
import java.util.concurrent.ConcurrentLinkedQueue
/**
* A non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created.

View File

@ -1,3 +1,19 @@
/*
* Copyright 2022 dorkbox, llc
*
* 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.
*/
package dorkbox.objectPool.suspending
import kotlinx.coroutines.channels.Channel

View File

@ -1,3 +1,19 @@
/*
* Copyright 2022 dorkbox, llc
*
* 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.
*/
package dorkbox.objectPool.suspending
import java.util.Collection