0.1.8 • Published 2 years ago

asclasit v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

asclasit

ASync CLasses + ASync ITerators

Description

This is public-ready spin off from related internal experiments of ClAsync. Advantages of this module:

  • 100% test coverage;
  • More project files, less file sizes;
  • Thin: has no external dependency modules, only core essentials taken from ClAsync and improved;
  • Utilizes up-to-date Node.js features;
  • Targetting serverless/stateless environments;
  • Despite the missing documentation, test cases describe the usage.

Differences

There are architectural differences listed below:

Async Classes

ItemClAsyncAsClAsIt
Instance co-opDependency treeState isolation
Life cycleOnce (init->final)Muplitle (...->wake->sleep->...)
Lifetime Methodsinit(), final()(Async) Generator *[$]() depicting whole lifetime
Instance stateNon-configurable [$.inst]Configurable [$] via static [$]: options object or custom $.Inst subclass
Async EventsSpecial class (emitter.js)Automatic for each instance; methods of instance state [$]
Instance ShutdownSupported (via final)Not supported (global shutdown handler only for non-stateless environments)

(Async) Iterators

ItemClAsyncAsClAsIt
HelpersFunctions: $.<name>[Iter\|Async](it, ...)Wrapped chain: $[.Iter\|.AsIt\|](it).<name>(...).<name>(...)
Extensible ClassesNot supportedSupported for sync ($.Iter) and async ($.AsIt) iterator classes

Testing

Tests and coverage powered by Jest

Thanks

Time Doctor

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago