nanolith
Advanced tools
Changelog
[0.4.6] - 2023-30-4
ConcurrencyOption.Default
.SharedMap.#isNull()
.taskHandler
used within Service
to avoid unnecessary looping. Minor performance improvement.ServiceCluster.use()
implementation to be more logical and performant.define()
.Pool
.autoRenew
option on ServiceCluster
.__beforeTask
and __afterTask
hooks with services & task workers.ParentThread
in-editor docs.threadID
getter on Service
. Can just do Service.worker.threadId
.Changelog
[0.4.5] - 2023-09-4
getDefaultPoolConcurrency
in README example.ServiceCluster
methods closeAll()
, closeAllIdle()
, use()
, and activeServiceCalls()
.Service.close()
not doing early cleanup for callbacks.Messenger.close()
not doing early cleanup for stream event callbacks.define()
waiting to run the worker before resolving with the Nanolith API object.workerData.identifier
property in PoolItemOptions
type.Service.call()
not cleaning up callbacks.Service.call()
not decreasing active count upon promise rejection.Messenger
with streams.ServiceCluster.use()
.ParentThreadTerminateMessageBody
type eliminated.Changelog
[0.4.4] - 2023-30-3
createStream()
method on Service
, Messenger
, and ParentThread
to accept Record<string | number, any>
metadata instead of Record<any, any>
.metaData
to Streaming data between threads section of README.Messenger.closed
getter.Service.setRef()
method.shareEnv
option for task & service workers, defaulting to true
+ docs.entries()
generator method on SharedMap
to be more performant.Messenger.closeAll()
not closing the current messenger instance.reffed
config option. Defaults to true
, not false
.Changelog
[0.4.3] 2023-2-3
SharedMap.entries()
method for asynchronously iterating over map keys and values + docs.