Skip to content

Commit

Permalink
v0.1.61
Browse files Browse the repository at this point in the history
  • Loading branch information
REllEK-IO committed May 8, 2024
1 parent 2d2b361 commit 4b45162
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ When in doubt simplify.
* [Unified Turing Machine](https://github.com/Phuire-Research/Stratimux/blob/main/The-Unified-Turing-Machine.md) - The governing concept for this entire framework.

## Change Log ![Tests](https://github.com/Phuire-Research/Stratimux/actions/workflows/node.js.yml/badge.svg)
### Strong Fast Time v0.1.61
* Created the new *axiumTimeOut* helper function
* This will add a specified action to the axium tail property after some specified time.
* This is used internally to handle the majority of asynchronous interactions
### Strong Fast **BREAKING** v0.1.59 5/06/24
* Removed the setTimeout trick in favor of a new tail property added to the axium concept, this paves the way for this pattern to be completely responsible for its own implementation.
* **BREAKING** Method Subjects are now a tuple of [action: Action, async: Boolean]. This allows for the old setTimeout trick to be used in case the action stream isn't kicked into gear.
Expand Down
2 changes: 1 addition & 1 deletion src/concepts/axium/axium.concept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Axium is a set of concepts that create a greater whole via their association
within strategies, plans, modes, qualities, and principles.
$>*/
/*<#*/
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
import { Subject, Subscription } from 'rxjs';
import { Concept, Concepts } from '../../model/concept';
import { Action } from '../../model/action';
import { axiumPrinciple } from './axium.principle';
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export type { dispatchOptions, Staging, UnifiedSubject, StagePlanner, NamedStage
export { stageWaitForOpenThenIterate, stageWaitForOwnershipThenIterate, createStage } from './model/stagePlanner';
export type { OwnershipTicket, OwnershipTicketStub, OwnershipLedger } from './model/ownership';
export { ownership } from './model/ownership';
export { axiumTimeOut } from './model/time';

//** Concept Exports */
// Axium
Expand Down
2 changes: 1 addition & 1 deletion src/model/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const handleTimedRun = (axiumState: AxiumState, func: (() => Action)[], timed: n
axiumState.timer.push(setTimeout(() => handleTimedRun(axiumState, slot[0], slot[1]), someTime >= 0 ? someTime : 0));
}
}
if (axiumState.lastRun < Date.now()) {
if (axiumState.lastRun < Date.now() && axiumState.tailTimer.length === 0) {
axiumState.tailTimer.push(setTimeout(() => {
axiumState.action$.next(createAction('Kick Axium'));
}, 10));
Expand Down

0 comments on commit 4b45162

Please sign in to comment.