@typed/fx 0.0.29 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/.eslintcache +1 -1
  2. package/cjs/fromDequeue.d.ts +4 -0
  3. package/cjs/fromDequeue.d.ts.map +1 -0
  4. package/cjs/fromDequeue.js +39 -0
  5. package/cjs/fromDequeue.js.map +1 -0
  6. package/cjs/fromHub.d.ts +4 -0
  7. package/cjs/fromHub.d.ts.map +1 -0
  8. package/cjs/fromHub.js +36 -0
  9. package/cjs/fromHub.js.map +1 -0
  10. package/cjs/index.d.ts +4 -0
  11. package/cjs/index.d.ts.map +1 -1
  12. package/cjs/index.js +4 -0
  13. package/cjs/index.js.map +1 -1
  14. package/cjs/toEnqueue.d.ts +5 -0
  15. package/cjs/toEnqueue.d.ts.map +1 -0
  16. package/cjs/toEnqueue.js +9 -0
  17. package/cjs/toEnqueue.js.map +1 -0
  18. package/cjs/toStream.d.ts +8 -0
  19. package/cjs/toStream.d.ts.map +1 -0
  20. package/cjs/toStream.js +64 -0
  21. package/cjs/toStream.js.map +1 -0
  22. package/cjs/transform.d.ts +1 -1
  23. package/cjs/transform.d.ts.map +1 -1
  24. package/cjs/transform.js.map +1 -1
  25. package/cjs/withEmitter.d.ts.map +1 -1
  26. package/cjs/withEmitter.js +3 -2
  27. package/cjs/withEmitter.js.map +1 -1
  28. package/esm/fromDequeue.d.ts +4 -0
  29. package/esm/fromDequeue.d.ts.map +1 -0
  30. package/esm/fromDequeue.js +12 -0
  31. package/esm/fromDequeue.js.map +1 -0
  32. package/esm/fromHub.d.ts +4 -0
  33. package/esm/fromHub.d.ts.map +1 -0
  34. package/esm/fromHub.js +9 -0
  35. package/esm/fromHub.js.map +1 -0
  36. package/esm/index.d.ts +4 -0
  37. package/esm/index.d.ts.map +1 -1
  38. package/esm/index.js +4 -0
  39. package/esm/index.js.map +1 -1
  40. package/esm/toEnqueue.d.ts +5 -0
  41. package/esm/toEnqueue.d.ts.map +1 -0
  42. package/esm/toEnqueue.js +5 -0
  43. package/esm/toEnqueue.js.map +1 -0
  44. package/esm/toStream.d.ts +8 -0
  45. package/esm/toStream.d.ts.map +1 -0
  46. package/esm/toStream.js +37 -0
  47. package/esm/toStream.js.map +1 -0
  48. package/esm/transform.d.ts +1 -1
  49. package/esm/transform.d.ts.map +1 -1
  50. package/esm/transform.js.map +1 -1
  51. package/esm/withEmitter.d.ts.map +1 -1
  52. package/esm/withEmitter.js +3 -2
  53. package/esm/withEmitter.js.map +1 -1
  54. package/package.json +41 -1
  55. package/src/fromDequeue.ts +17 -0
  56. package/src/fromHub.ts +12 -0
  57. package/src/index.ts +4 -0
  58. package/src/toEnqueue.ts +9 -0
  59. package/src/toStream.ts +81 -0
  60. package/src/transform.ts +3 -1
  61. package/src/withEmitter.ts +3 -2
package/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts":"1","/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts":"2","/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts":"3","/Users/TylorSteinberger/code/tylors/fx/src/combine.ts":"4","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts":"5","/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts":"6","/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts":"7","/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts":"8","/Users/TylorSteinberger/code/tylors/fx/src/delay.ts":"9","/Users/TylorSteinberger/code/tylors/fx/src/during.ts":"10","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts":"11","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts":"12","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts":"13","/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts":"14","/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts":"15","/Users/TylorSteinberger/code/tylors/fx/src/hold.ts":"16","/Users/TylorSteinberger/code/tylors/fx/src/index.ts":"17","/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts":"18","/Users/TylorSteinberger/code/tylors/fx/src/merge.ts":"19","/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts":"20","/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts":"21","/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts":"22","/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts":"23","/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts":"24","/Users/TylorSteinberger/code/tylors/fx/src/provide.ts":"25","/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts":"26","/Users/TylorSteinberger/code/tylors/fx/src/since.ts":"27","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts":"28","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts":"29","/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts":"30","/Users/TylorSteinberger/code/tylors/fx/src/slice.ts":"31","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts":"32","/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts":"33","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts":"34","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts":"35","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts":"36","/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts":"37","/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts":"38","/Users/TylorSteinberger/code/tylors/fx/src/transform.ts":"39","/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts":"40","/Users/TylorSteinberger/code/tylors/fx/src/until.ts":"41","/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts":"42","/Users/TylorSteinberger/code/tylors/fx/src/zip.ts":"43","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts":"44","/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts":"45","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts":"46","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts":"47","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts":"48","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts":"49","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts":"50","/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts":"51","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts":"52","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts":"53","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts":"54","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts":"55","/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts":"56","/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts":"57","/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts":"58","/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts":"59","/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts":"60","/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts":"61","/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts":"62","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts":"63","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts":"64","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts":"65","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts":"66","/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts":"67","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts":"68","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts":"69","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts":"70","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts":"71","/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts":"72","/Users/TylorSteinberger/code/tylors/fx/src/Subject.test.ts":"73","/Users/TylorSteinberger/code/tylors/fx/src/struct.ts":"74","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMap.test.ts":"75","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMap.ts":"76","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapLatest.test.ts":"77","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapLatest.ts":"78","/Users/TylorSteinberger/code/tylors/fx/src/scanEffect.ts":"79","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapList.test.ts":"80","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapList.ts":"81","/Users/TylorSteinberger/code/tylors/fx/src/fromFxEffect.ts":"82","/Users/TylorSteinberger/code/tylors/fx/src/on.ts":"83"},{"size":1543,"mtime":1667245032170,"results":"84","hashOfConfig":"85"},{"size":2306,"mtime":1667867406922,"results":"86","hashOfConfig":"85"},{"size":919,"mtime":1666901217496,"results":"87","hashOfConfig":"85"},{"size":2169,"mtime":1667363981866,"results":"88","hashOfConfig":"85"},{"size":591,"mtime":1666901217497,"results":"89","hashOfConfig":"85"},{"size":522,"mtime":1666901217497,"results":"90","hashOfConfig":"85"},{"size":1617,"mtime":1666901217497,"results":"91","hashOfConfig":"85"},{"size":701,"mtime":1666901217498,"results":"92","hashOfConfig":"85"},{"size":557,"mtime":1666909013033,"results":"93","hashOfConfig":"85"},{"size":1674,"mtime":1666909765898,"results":"94","hashOfConfig":"85"},{"size":1506,"mtime":1666901217500,"results":"95","hashOfConfig":"85"},{"size":1216,"mtime":1667243469286,"results":"96","hashOfConfig":"85"},{"size":706,"mtime":1666906589152,"results":"97","hashOfConfig":"85"},{"size":3822,"mtime":1667245505029,"results":"98","hashOfConfig":"85"},{"size":1443,"mtime":1666901217502,"results":"99","hashOfConfig":"85"},{"size":3722,"mtime":1667783424465,"results":"100","hashOfConfig":"85"},{"size":1468,"mtime":1667507751147,"results":"101","hashOfConfig":"85"},{"size":530,"mtime":1666901217504,"results":"102","hashOfConfig":"85"},{"size":1039,"mtime":1667363999261,"results":"103","hashOfConfig":"85"},{"size":1293,"mtime":1666901217505,"results":"104","hashOfConfig":"85"},{"size":3363,"mtime":1667243508744,"results":"105","hashOfConfig":"85"},{"size":1034,"mtime":1666901391894,"results":"106","hashOfConfig":"85"},{"size":648,"mtime":1666901217507,"results":"107","hashOfConfig":"85"},{"size":429,"mtime":1666900225601,"results":"108","hashOfConfig":"85"},{"size":2111,"mtime":1667506964437,"results":"109","hashOfConfig":"85"},{"size":2515,"mtime":1666901217509,"results":"110","hashOfConfig":"85"},{"size":1010,"mtime":1666909377506,"results":"111","hashOfConfig":"85"},{"size":959,"mtime":1666901217510,"results":"112","hashOfConfig":"85"},{"size":1300,"mtime":1666901217511,"results":"113","hashOfConfig":"85"},{"size":530,"mtime":1666901217511,"results":"114","hashOfConfig":"85"},{"size":1145,"mtime":1666901217511,"results":"115","hashOfConfig":"85"},{"size":1543,"mtime":1667245692042,"results":"116","hashOfConfig":"85"},{"size":152,"mtime":1666901217512,"results":"117","hashOfConfig":"85"},{"size":976,"mtime":1666901217513,"results":"118","hashOfConfig":"85"},{"size":1628,"mtime":1666901217513,"results":"119","hashOfConfig":"85"},{"size":777,"mtime":1666901217514,"results":"120","hashOfConfig":"85"},{"size":527,"mtime":1666901217515,"results":"121","hashOfConfig":"85"},{"size":1810,"mtime":1666901217515,"results":"122","hashOfConfig":"85"},{"size":1672,"mtime":1667507710911,"results":"123","hashOfConfig":"85"},{"size":1089,"mtime":1667430061361,"results":"124","hashOfConfig":"85"},{"size":859,"mtime":1666909733301,"results":"125","hashOfConfig":"85"},{"size":832,"mtime":1666901217517,"results":"126","hashOfConfig":"85"},{"size":2272,"mtime":1667364024593,"results":"127","hashOfConfig":"85"},{"size":654,"mtime":1666901217496,"results":"128","hashOfConfig":"85"},{"size":1195,"mtime":1666923294384,"results":"129","hashOfConfig":"85"},{"size":2106,"mtime":1666901217498,"results":"130","hashOfConfig":"85"},{"size":3589,"mtime":1667243426349,"results":"131","hashOfConfig":"85"},{"size":917,"mtime":1666901217499,"results":"132","hashOfConfig":"85"},{"size":2254,"mtime":1667243443566,"results":"133","hashOfConfig":"85"},{"size":715,"mtime":1666901217501,"results":"134","hashOfConfig":"85"},{"size":541,"mtime":1667245537329,"results":"135","hashOfConfig":"85"},{"size":988,"mtime":1666901217503,"results":"136","hashOfConfig":"85"},{"size":636,"mtime":1667244943264,"results":"137","hashOfConfig":"85"},{"size":557,"mtime":1666901217504,"results":"138","hashOfConfig":"85"},{"size":474,"mtime":1666901217504,"results":"139","hashOfConfig":"85"},{"size":578,"mtime":1666901217506,"results":"140","hashOfConfig":"85"},{"size":1519,"mtime":1666901217507,"results":"141","hashOfConfig":"85"},{"size":595,"mtime":1667245260972,"results":"142","hashOfConfig":"85"},{"size":747,"mtime":1667245189503,"results":"143","hashOfConfig":"85"},{"size":1006,"mtime":1667245204826,"results":"144","hashOfConfig":"85"},{"size":1535,"mtime":1666901217509,"results":"145","hashOfConfig":"85"},{"size":1202,"mtime":1666923495584,"results":"146","hashOfConfig":"85"},{"size":770,"mtime":1666901217510,"results":"147","hashOfConfig":"85"},{"size":1116,"mtime":1666901217510,"results":"148","hashOfConfig":"85"},{"size":1270,"mtime":1666901217512,"results":"149","hashOfConfig":"85"},{"size":1080,"mtime":1666901217513,"results":"150","hashOfConfig":"85"},{"size":656,"mtime":1666901217514,"results":"151","hashOfConfig":"85"},{"size":695,"mtime":1667338167016,"results":"152","hashOfConfig":"85"},{"size":1607,"mtime":1667338167016,"results":"153","hashOfConfig":"85"},{"size":597,"mtime":1666901217517,"results":"154","hashOfConfig":"85"},{"size":1364,"mtime":1666901217517,"results":"155","hashOfConfig":"85"},{"size":7996,"mtime":1667790016896,"results":"156","hashOfConfig":"85"},{"size":2442,"mtime":1667362933383,"results":"157","hashOfConfig":"85"},{"size":612,"mtime":1667266401971,"results":"158","hashOfConfig":"85"},{"size":961,"mtime":1667342820267,"results":"159","hashOfConfig":"85"},{"size":1766,"mtime":1667342674190,"results":"160","hashOfConfig":"85"},{"size":996,"mtime":1667343685087,"results":"161","hashOfConfig":"85"},{"size":2116,"mtime":1667343590392,"results":"162","hashOfConfig":"85"},{"size":972,"mtime":1667360505974,"results":"163","hashOfConfig":"85"},{"size":1658,"mtime":1667429620812,"results":"164","hashOfConfig":"85"},{"size":6526,"mtime":1667431107137,"results":"165","hashOfConfig":"85"},{"size":894,"mtime":1667854733383,"results":"166","hashOfConfig":"85"},{"size":1332,"mtime":1667507715404,"results":"167","hashOfConfig":"85"},{"filePath":"168","messages":"169","suppressedMessages":"170","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1338ja8",{"filePath":"171","messages":"172","suppressedMessages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","suppressedMessages":"176","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"177","messages":"178","suppressedMessages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","suppressedMessages":"182","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"183","messages":"184","suppressedMessages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","suppressedMessages":"188","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"189","messages":"190","suppressedMessages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","suppressedMessages":"194","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"195","messages":"196","suppressedMessages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","suppressedMessages":"200","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"201","messages":"202","suppressedMessages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","suppressedMessages":"206","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"207","messages":"208","suppressedMessages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","suppressedMessages":"212","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"213","messages":"214","suppressedMessages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","suppressedMessages":"218","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"219","messages":"220","suppressedMessages":"221","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"222","messages":"223","suppressedMessages":"224","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"225","messages":"226","suppressedMessages":"227","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"228","messages":"229","suppressedMessages":"230","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"231","messages":"232","suppressedMessages":"233","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"234","messages":"235","suppressedMessages":"236","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"237","messages":"238","suppressedMessages":"239","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"240","messages":"241","suppressedMessages":"242","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"243","messages":"244","suppressedMessages":"245","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"246","messages":"247","suppressedMessages":"248","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"249","messages":"250","suppressedMessages":"251","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"252","messages":"253","suppressedMessages":"254","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"255","messages":"256","suppressedMessages":"257","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"258","messages":"259","suppressedMessages":"260","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"261","messages":"262","suppressedMessages":"263","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"264","messages":"265","suppressedMessages":"266","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"267","messages":"268","suppressedMessages":"269","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"270","messages":"271","suppressedMessages":"272","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"273","messages":"274","suppressedMessages":"275","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"276","messages":"277","suppressedMessages":"278","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"279","messages":"280","suppressedMessages":"281","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"282","messages":"283","suppressedMessages":"284","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"285","messages":"286","suppressedMessages":"287","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"288","messages":"289","suppressedMessages":"290","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"291","messages":"292","suppressedMessages":"293","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"294","messages":"295","suppressedMessages":"296","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"297","messages":"298","suppressedMessages":"299","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"300","messages":"301","suppressedMessages":"302","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"303","messages":"304","suppressedMessages":"305","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"306","messages":"307","suppressedMessages":"308","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"309","messages":"310","suppressedMessages":"311","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"312","messages":"313","suppressedMessages":"314","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"315","messages":"316","suppressedMessages":"317","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"318","messages":"319","suppressedMessages":"320","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"321","messages":"322","suppressedMessages":"323","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"324","messages":"325","suppressedMessages":"326","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"327","messages":"328","suppressedMessages":"329","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"330","messages":"331","suppressedMessages":"332","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"333","messages":"334","suppressedMessages":"335","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"336","messages":"337","suppressedMessages":"338","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"339","messages":"340","suppressedMessages":"341","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"342","messages":"343","suppressedMessages":"344","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"345","messages":"346","suppressedMessages":"347","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"348","messages":"349","suppressedMessages":"350","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"351","messages":"352","suppressedMessages":"353","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"354","messages":"355","suppressedMessages":"356","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"357","messages":"358","suppressedMessages":"359","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"360","messages":"361","suppressedMessages":"362","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"363","messages":"364","suppressedMessages":"365","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"366","messages":"367","suppressedMessages":"368","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"369","messages":"370","suppressedMessages":"371","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"372","messages":"373","suppressedMessages":"374","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"375","messages":"376","suppressedMessages":"377","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"378","messages":"379","suppressedMessages":"380","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"381","messages":"382","suppressedMessages":"383","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"384","messages":"385","suppressedMessages":"386","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"387","messages":"388","suppressedMessages":"389","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"390","messages":"391","suppressedMessages":"392","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"393","messages":"394","suppressedMessages":"395","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"396","messages":"397","suppressedMessages":"398","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"399","messages":"400","suppressedMessages":"401","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"402","messages":"403","suppressedMessages":"404","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"405","messages":"406","suppressedMessages":"407","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"408","messages":"409","suppressedMessages":"410","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"411","messages":"412","suppressedMessages":"413","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"414","messages":"415","suppressedMessages":"416","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts",[],["417","418","419","420","421","422"],"/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/index.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/transform.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/struct.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapLatest.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapLatest.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/scanEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapList.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapList.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromFxEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/on.ts",[],[],{"ruleId":"423","severity":1,"message":"424","line":22,"column":63,"nodeType":"425","messageId":"426","endLine":22,"endColumn":65,"suppressions":"427"},{"ruleId":"423","severity":1,"message":"428","line":22,"column":73,"nodeType":"425","messageId":"426","endLine":22,"endColumn":75,"suppressions":"429"},{"ruleId":"423","severity":1,"message":"430","line":23,"column":51,"nodeType":"425","messageId":"426","endLine":23,"endColumn":53,"suppressions":"431"},{"ruleId":"423","severity":1,"message":"428","line":23,"column":70,"nodeType":"425","messageId":"426","endLine":23,"endColumn":72,"suppressions":"432"},{"ruleId":"423","severity":1,"message":"430","line":24,"column":51,"nodeType":"425","messageId":"426","endLine":24,"endColumn":53,"suppressions":"433"},{"ruleId":"423","severity":1,"message":"424","line":24,"column":61,"nodeType":"425","messageId":"426","endLine":24,"endColumn":63,"suppressions":"434"},"@typescript-eslint/no-unused-vars","'_E' is defined but never used.","Identifier","unusedVar",["435"],"'_A' is defined but never used.",["436"],"'_R' is defined but never used.",["437"],["438"],["439"],["440"],{"kind":"441","justification":"442"},{"kind":"441","justification":"442"},{"kind":"441","justification":"442"},{"kind":"441","justification":"442"},{"kind":"441","justification":"442"},{"kind":"441","justification":"442"},"directive",""]
1
+ [{"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts":"1","/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts":"2","/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts":"3","/Users/TylorSteinberger/code/tylors/fx/src/combine.ts":"4","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts":"5","/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts":"6","/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts":"7","/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts":"8","/Users/TylorSteinberger/code/tylors/fx/src/delay.ts":"9","/Users/TylorSteinberger/code/tylors/fx/src/during.ts":"10","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts":"11","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts":"12","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts":"13","/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts":"14","/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts":"15","/Users/TylorSteinberger/code/tylors/fx/src/hold.ts":"16","/Users/TylorSteinberger/code/tylors/fx/src/index.ts":"17","/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts":"18","/Users/TylorSteinberger/code/tylors/fx/src/merge.ts":"19","/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts":"20","/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts":"21","/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts":"22","/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts":"23","/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts":"24","/Users/TylorSteinberger/code/tylors/fx/src/provide.ts":"25","/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts":"26","/Users/TylorSteinberger/code/tylors/fx/src/since.ts":"27","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts":"28","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts":"29","/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts":"30","/Users/TylorSteinberger/code/tylors/fx/src/slice.ts":"31","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts":"32","/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts":"33","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts":"34","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts":"35","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts":"36","/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts":"37","/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts":"38","/Users/TylorSteinberger/code/tylors/fx/src/transform.ts":"39","/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts":"40","/Users/TylorSteinberger/code/tylors/fx/src/until.ts":"41","/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts":"42","/Users/TylorSteinberger/code/tylors/fx/src/zip.ts":"43","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts":"44","/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts":"45","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts":"46","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts":"47","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts":"48","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts":"49","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts":"50","/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts":"51","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts":"52","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts":"53","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts":"54","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts":"55","/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts":"56","/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts":"57","/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts":"58","/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts":"59","/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts":"60","/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts":"61","/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts":"62","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts":"63","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts":"64","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts":"65","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts":"66","/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts":"67","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts":"68","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts":"69","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts":"70","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts":"71","/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts":"72","/Users/TylorSteinberger/code/tylors/fx/src/Subject.test.ts":"73","/Users/TylorSteinberger/code/tylors/fx/src/struct.ts":"74","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMap.test.ts":"75","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMap.ts":"76","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapLatest.test.ts":"77","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapLatest.ts":"78","/Users/TylorSteinberger/code/tylors/fx/src/scanEffect.ts":"79","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapList.test.ts":"80","/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapList.ts":"81","/Users/TylorSteinberger/code/tylors/fx/src/fromFxEffect.ts":"82","/Users/TylorSteinberger/code/tylors/fx/src/on.ts":"83","/Users/TylorSteinberger/code/tylors/fx/src/fromDequeue.ts":"84","/Users/TylorSteinberger/code/tylors/fx/src/fromHub.ts":"85","/Users/TylorSteinberger/code/tylors/fx/src/toEnqueue.ts":"86","/Users/TylorSteinberger/code/tylors/fx/src/toStream.ts":"87"},{"size":1543,"mtime":1667245032170,"results":"88","hashOfConfig":"89"},{"size":2306,"mtime":1667867406922,"results":"90","hashOfConfig":"89"},{"size":919,"mtime":1666901217496,"results":"91","hashOfConfig":"89"},{"size":2169,"mtime":1667363981866,"results":"92","hashOfConfig":"89"},{"size":591,"mtime":1666901217497,"results":"93","hashOfConfig":"89"},{"size":522,"mtime":1666901217497,"results":"94","hashOfConfig":"89"},{"size":1617,"mtime":1666901217497,"results":"95","hashOfConfig":"89"},{"size":701,"mtime":1666901217498,"results":"96","hashOfConfig":"89"},{"size":557,"mtime":1666909013033,"results":"97","hashOfConfig":"89"},{"size":1674,"mtime":1666909765898,"results":"98","hashOfConfig":"89"},{"size":1506,"mtime":1666901217500,"results":"99","hashOfConfig":"89"},{"size":1216,"mtime":1667243469286,"results":"100","hashOfConfig":"89"},{"size":706,"mtime":1666906589152,"results":"101","hashOfConfig":"89"},{"size":3822,"mtime":1667245505029,"results":"102","hashOfConfig":"89"},{"size":1443,"mtime":1666901217502,"results":"103","hashOfConfig":"89"},{"size":3722,"mtime":1667783424465,"results":"104","hashOfConfig":"89"},{"size":1591,"mtime":1668115846532,"results":"105","hashOfConfig":"89"},{"size":530,"mtime":1666901217504,"results":"106","hashOfConfig":"89"},{"size":1039,"mtime":1667363999261,"results":"107","hashOfConfig":"89"},{"size":1293,"mtime":1666901217505,"results":"108","hashOfConfig":"89"},{"size":3363,"mtime":1667243508744,"results":"109","hashOfConfig":"89"},{"size":1034,"mtime":1666901391894,"results":"110","hashOfConfig":"89"},{"size":648,"mtime":1666901217507,"results":"111","hashOfConfig":"89"},{"size":429,"mtime":1666900225601,"results":"112","hashOfConfig":"89"},{"size":2111,"mtime":1667506964437,"results":"113","hashOfConfig":"89"},{"size":2515,"mtime":1666901217509,"results":"114","hashOfConfig":"89"},{"size":1010,"mtime":1666909377506,"results":"115","hashOfConfig":"89"},{"size":959,"mtime":1666901217510,"results":"116","hashOfConfig":"89"},{"size":1300,"mtime":1666901217511,"results":"117","hashOfConfig":"89"},{"size":530,"mtime":1666901217511,"results":"118","hashOfConfig":"89"},{"size":1145,"mtime":1666901217511,"results":"119","hashOfConfig":"89"},{"size":1543,"mtime":1667245692042,"results":"120","hashOfConfig":"89"},{"size":152,"mtime":1666901217512,"results":"121","hashOfConfig":"89"},{"size":976,"mtime":1666901217513,"results":"122","hashOfConfig":"89"},{"size":1628,"mtime":1666901217513,"results":"123","hashOfConfig":"89"},{"size":777,"mtime":1666901217514,"results":"124","hashOfConfig":"89"},{"size":527,"mtime":1666901217515,"results":"125","hashOfConfig":"89"},{"size":1810,"mtime":1666901217515,"results":"126","hashOfConfig":"89"},{"size":1738,"mtime":1668112851777,"results":"127","hashOfConfig":"89"},{"size":1089,"mtime":1667430061361,"results":"128","hashOfConfig":"89"},{"size":859,"mtime":1666909733301,"results":"129","hashOfConfig":"89"},{"size":832,"mtime":1666901217517,"results":"130","hashOfConfig":"89"},{"size":2272,"mtime":1667364024593,"results":"131","hashOfConfig":"89"},{"size":654,"mtime":1666901217496,"results":"132","hashOfConfig":"89"},{"size":1195,"mtime":1666923294384,"results":"133","hashOfConfig":"89"},{"size":2106,"mtime":1666901217498,"results":"134","hashOfConfig":"89"},{"size":3589,"mtime":1667243426349,"results":"135","hashOfConfig":"89"},{"size":917,"mtime":1666901217499,"results":"136","hashOfConfig":"89"},{"size":2254,"mtime":1667243443566,"results":"137","hashOfConfig":"89"},{"size":715,"mtime":1666901217501,"results":"138","hashOfConfig":"89"},{"size":541,"mtime":1667245537329,"results":"139","hashOfConfig":"89"},{"size":988,"mtime":1666901217503,"results":"140","hashOfConfig":"89"},{"size":636,"mtime":1667244943264,"results":"141","hashOfConfig":"89"},{"size":557,"mtime":1666901217504,"results":"142","hashOfConfig":"89"},{"size":474,"mtime":1666901217504,"results":"143","hashOfConfig":"89"},{"size":578,"mtime":1666901217506,"results":"144","hashOfConfig":"89"},{"size":1519,"mtime":1666901217507,"results":"145","hashOfConfig":"89"},{"size":595,"mtime":1667245260972,"results":"146","hashOfConfig":"89"},{"size":747,"mtime":1667245189503,"results":"147","hashOfConfig":"89"},{"size":1006,"mtime":1667245204826,"results":"148","hashOfConfig":"89"},{"size":1535,"mtime":1666901217509,"results":"149","hashOfConfig":"89"},{"size":1202,"mtime":1666923495584,"results":"150","hashOfConfig":"89"},{"size":770,"mtime":1666901217510,"results":"151","hashOfConfig":"89"},{"size":1116,"mtime":1666901217510,"results":"152","hashOfConfig":"89"},{"size":1270,"mtime":1666901217512,"results":"153","hashOfConfig":"89"},{"size":1080,"mtime":1666901217513,"results":"154","hashOfConfig":"89"},{"size":656,"mtime":1666901217514,"results":"155","hashOfConfig":"89"},{"size":695,"mtime":1667338167016,"results":"156","hashOfConfig":"89"},{"size":1646,"mtime":1668128942059,"results":"157","hashOfConfig":"89"},{"size":597,"mtime":1666901217517,"results":"158","hashOfConfig":"89"},{"size":1364,"mtime":1666901217517,"results":"159","hashOfConfig":"89"},{"size":7996,"mtime":1667790016896,"results":"160","hashOfConfig":"89"},{"size":2442,"mtime":1667362933383,"results":"161","hashOfConfig":"89"},{"size":612,"mtime":1667266401971,"results":"162","hashOfConfig":"89"},{"size":961,"mtime":1667342820267,"results":"163","hashOfConfig":"89"},{"size":1766,"mtime":1667342674190,"results":"164","hashOfConfig":"89"},{"size":996,"mtime":1667343685087,"results":"165","hashOfConfig":"89"},{"size":2116,"mtime":1667343590392,"results":"166","hashOfConfig":"89"},{"size":972,"mtime":1667360505974,"results":"167","hashOfConfig":"89"},{"size":1658,"mtime":1667429620812,"results":"168","hashOfConfig":"89"},{"size":6526,"mtime":1667431107137,"results":"169","hashOfConfig":"89"},{"size":894,"mtime":1667854733383,"results":"170","hashOfConfig":"89"},{"size":1332,"mtime":1667507715404,"results":"171","hashOfConfig":"89"},{"size":430,"mtime":1668112717890,"results":"172","hashOfConfig":"89"},{"size":448,"mtime":1668112866722,"results":"173","hashOfConfig":"89"},{"size":308,"mtime":1668113117499,"results":"174","hashOfConfig":"89"},{"size":2375,"mtime":1668115558567,"results":"175","hashOfConfig":"89"},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1jner5d",{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"197","messages":"198","suppressedMessages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","suppressedMessages":"202","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"203","messages":"204","suppressedMessages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","suppressedMessages":"208","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"209","messages":"210","suppressedMessages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","suppressedMessages":"214","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"215","messages":"216","suppressedMessages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","suppressedMessages":"220","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"221","messages":"222","suppressedMessages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","suppressedMessages":"226","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"227","messages":"228","suppressedMessages":"229","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"230","messages":"231","suppressedMessages":"232","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"233","messages":"234","suppressedMessages":"235","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"236","messages":"237","suppressedMessages":"238","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"239","messages":"240","suppressedMessages":"241","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"242","messages":"243","suppressedMessages":"244","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"245","messages":"246","suppressedMessages":"247","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"248","messages":"249","suppressedMessages":"250","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"251","messages":"252","suppressedMessages":"253","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"254","messages":"255","suppressedMessages":"256","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"257","messages":"258","suppressedMessages":"259","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"260","messages":"261","suppressedMessages":"262","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"263","messages":"264","suppressedMessages":"265","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"266","messages":"267","suppressedMessages":"268","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"269","messages":"270","suppressedMessages":"271","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"272","messages":"273","suppressedMessages":"274","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"275","messages":"276","suppressedMessages":"277","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"278","messages":"279","suppressedMessages":"280","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"281","messages":"282","suppressedMessages":"283","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"284","messages":"285","suppressedMessages":"286","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"287","messages":"288","suppressedMessages":"289","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"290","messages":"291","suppressedMessages":"292","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"293","messages":"294","suppressedMessages":"295","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"296","messages":"297","suppressedMessages":"298","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"299","messages":"300","suppressedMessages":"301","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"302","messages":"303","suppressedMessages":"304","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"305","messages":"306","suppressedMessages":"307","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"308","messages":"309","suppressedMessages":"310","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"311","messages":"312","suppressedMessages":"313","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"314","messages":"315","suppressedMessages":"316","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"317","messages":"318","suppressedMessages":"319","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"320","messages":"321","suppressedMessages":"322","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"323","messages":"324","suppressedMessages":"325","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"326","messages":"327","suppressedMessages":"328","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"329","messages":"330","suppressedMessages":"331","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"332","messages":"333","suppressedMessages":"334","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"335","messages":"336","suppressedMessages":"337","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"338","messages":"339","suppressedMessages":"340","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"341","messages":"342","suppressedMessages":"343","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"344","messages":"345","suppressedMessages":"346","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"347","messages":"348","suppressedMessages":"349","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"350","messages":"351","suppressedMessages":"352","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"353","messages":"354","suppressedMessages":"355","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"356","messages":"357","suppressedMessages":"358","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"359","messages":"360","suppressedMessages":"361","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"362","messages":"363","suppressedMessages":"364","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"365","messages":"366","suppressedMessages":"367","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"368","messages":"369","suppressedMessages":"370","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"371","messages":"372","suppressedMessages":"373","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"374","messages":"375","suppressedMessages":"376","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"377","messages":"378","suppressedMessages":"379","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"380","messages":"381","suppressedMessages":"382","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"383","messages":"384","suppressedMessages":"385","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"386","messages":"387","suppressedMessages":"388","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"389","messages":"390","suppressedMessages":"391","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"392","messages":"393","suppressedMessages":"394","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"395","messages":"396","suppressedMessages":"397","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"398","messages":"399","suppressedMessages":"400","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"401","messages":"402","suppressedMessages":"403","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"404","messages":"405","suppressedMessages":"406","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"407","messages":"408","suppressedMessages":"409","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"410","messages":"411","suppressedMessages":"412","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"413","messages":"414","suppressedMessages":"415","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"416","messages":"417","suppressedMessages":"418","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"419","messages":"420","suppressedMessages":"421","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"422","messages":"423","suppressedMessages":"424","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"425","messages":"426","suppressedMessages":"427","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"428","messages":"429","suppressedMessages":"430","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"431","messages":"432","suppressedMessages":"433","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"434","messages":"435","suppressedMessages":"436","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts",[],["437","438","439","440","441","442"],"/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/index.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/transform.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/struct.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapLatest.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapLatest.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/scanEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapList.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/exhaustMapList.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromFxEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/on.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromDequeue.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromHub.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/toEnqueue.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/toStream.ts",[],[],{"ruleId":"443","severity":1,"message":"444","line":22,"column":63,"nodeType":"445","messageId":"446","endLine":22,"endColumn":65,"suppressions":"447"},{"ruleId":"443","severity":1,"message":"448","line":22,"column":73,"nodeType":"445","messageId":"446","endLine":22,"endColumn":75,"suppressions":"449"},{"ruleId":"443","severity":1,"message":"450","line":23,"column":51,"nodeType":"445","messageId":"446","endLine":23,"endColumn":53,"suppressions":"451"},{"ruleId":"443","severity":1,"message":"448","line":23,"column":70,"nodeType":"445","messageId":"446","endLine":23,"endColumn":72,"suppressions":"452"},{"ruleId":"443","severity":1,"message":"450","line":24,"column":51,"nodeType":"445","messageId":"446","endLine":24,"endColumn":53,"suppressions":"453"},{"ruleId":"443","severity":1,"message":"444","line":24,"column":61,"nodeType":"445","messageId":"446","endLine":24,"endColumn":63,"suppressions":"454"},"@typescript-eslint/no-unused-vars","'_E' is defined but never used.","Identifier","unusedVar",["455"],"'_A' is defined but never used.",["456"],"'_R' is defined but never used.",["457"],["458"],["459"],["460"],{"kind":"461","justification":"462"},{"kind":"461","justification":"462"},{"kind":"461","justification":"462"},{"kind":"461","justification":"462"},{"kind":"461","justification":"462"},{"kind":"461","justification":"462"},"directive",""]
@@ -0,0 +1,4 @@
1
+ import * as Q from '@effect/core/io/Queue';
2
+ import { Fx } from './Fx.js';
3
+ export declare function fromDequeue<A>(dequeue: Q.Dequeue<A>): Fx<never, never, A>;
4
+ //# sourceMappingURL=fromDequeue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromDequeue.d.ts","sourceRoot":"","sources":["../src/fromDequeue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,uBAAuB,CAAA;AAE1C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAWzE"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.fromDequeue = void 0;
27
+ const Effect = __importStar(require("@effect/core/io/Effect"));
28
+ const Fx_js_1 = require("./Fx.js");
29
+ function fromDequeue(dequeue) {
30
+ return (0, Fx_js_1.Fx)((emitter) => Effect.gen(function* ($) {
31
+ while (!(yield* $(dequeue.isShutdown))) {
32
+ const a = yield* $(dequeue.take);
33
+ yield* $(emitter.emit(a));
34
+ }
35
+ yield* $(emitter.end);
36
+ }));
37
+ }
38
+ exports.fromDequeue = fromDequeue;
39
+ //# sourceMappingURL=fromDequeue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromDequeue.js","sourceRoot":"","sources":["../src/fromDequeue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAgD;AAGhD,mCAA4B;AAE5B,SAAgB,WAAW,CAAI,OAAqB;IAClD,OAAO,IAAA,UAAE,EAAC,CAAC,OAAO,EAAE,EAAE,CACpB,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrB,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE;YACtC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;YAChC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SAC1B;QAED,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IACvB,CAAC,CAAC,CACH,CAAA;AACH,CAAC;AAXD,kCAWC"}
@@ -0,0 +1,4 @@
1
+ import * as Hub from '@effect/core/io/Hub';
2
+ import { Fx } from './Fx.js';
3
+ export declare function fromHub<A>(hub: Hub.Hub<A>): Fx<never, never, A>;
4
+ //# sourceMappingURL=fromHub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromHub.d.ts","sourceRoot":"","sources":["../src/fromHub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAG1C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAK5B,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAE/D"}
package/cjs/fromHub.js ADDED
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.fromHub = void 0;
27
+ const Effect = __importStar(require("@effect/core/io/Effect"));
28
+ const Function_1 = require("@fp-ts/data/Function");
29
+ const fromDequeue_js_1 = require("./fromDequeue.js");
30
+ const fromFxEffect_js_1 = require("./fromFxEffect.js");
31
+ const transform_js_1 = require("./transform.js");
32
+ function fromHub(hub) {
33
+ return (0, Function_1.pipe)(hub.subscribe, Effect.map(fromDequeue_js_1.fromDequeue), fromFxEffect_js_1.fromFxEffect, transform_js_1.scoped);
34
+ }
35
+ exports.fromHub = fromHub;
36
+ //# sourceMappingURL=fromHub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromHub.js","sourceRoot":"","sources":["../src/fromHub.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAgD;AAEhD,mDAA2C;AAG3C,qDAA8C;AAC9C,uDAAgD;AAChD,iDAAuC;AAEvC,SAAgB,OAAO,CAAI,GAAe;IACxC,OAAO,IAAA,eAAI,EAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,4BAAW,CAAC,EAAE,8BAAY,EAAE,qBAAM,CAAC,CAAA;AAC3E,CAAC;AAFD,0BAEC"}
package/cjs/index.d.ts CHANGED
@@ -10,8 +10,10 @@ export * from './filterLoop.js';
10
10
  export * from './filterMap.js';
11
11
  export * from './flatMap.js';
12
12
  export * from './flatMapConcurrently.js';
13
+ export * from './fromDequeue.js';
13
14
  export * from './fromEffect.js';
14
15
  export * from './fromFxEffect.js';
16
+ export * from './fromHub.js';
15
17
  export * from './fromIterable.js';
16
18
  export * from './Fx.js';
17
19
  export * from './hold.js';
@@ -41,6 +43,8 @@ export * from './switchMap.js';
41
43
  export * from './takeWhile.js';
42
44
  export * from './tapEffect.js';
43
45
  export * from './throttle.js';
46
+ export * from './toEnqueue.js';
47
+ export * from './toStream.js';
44
48
  export * from './transform.js';
45
49
  export * from './until.js';
46
50
  export * from './withEmitter.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,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Ac,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
package/cjs/index.js CHANGED
@@ -26,8 +26,10 @@ __exportStar(require("./filterLoop.js"), exports);
26
26
  __exportStar(require("./filterMap.js"), exports);
27
27
  __exportStar(require("./flatMap.js"), exports);
28
28
  __exportStar(require("./flatMapConcurrently.js"), exports);
29
+ __exportStar(require("./fromDequeue.js"), exports);
29
30
  __exportStar(require("./fromEffect.js"), exports);
30
31
  __exportStar(require("./fromFxEffect.js"), exports);
32
+ __exportStar(require("./fromHub.js"), exports);
31
33
  __exportStar(require("./fromIterable.js"), exports);
32
34
  __exportStar(require("./Fx.js"), exports);
33
35
  __exportStar(require("./hold.js"), exports);
@@ -57,6 +59,8 @@ __exportStar(require("./switchMap.js"), exports);
57
59
  __exportStar(require("./takeWhile.js"), exports);
58
60
  __exportStar(require("./tapEffect.js"), exports);
59
61
  __exportStar(require("./throttle.js"), exports);
62
+ __exportStar(require("./toEnqueue.js"), exports);
63
+ __exportStar(require("./toStream.js"), exports);
60
64
  __exportStar(require("./transform.js"), exports);
61
65
  __exportStar(require("./until.js"), exports);
62
66
  __exportStar(require("./withEmitter.js"), exports);
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,6CAA0B;AAC1B,8CAA2B;AAC3B,kDAA+B;AAC/B,wDAAqC;AACrC,sDAAmC;AACnC,kDAA+B;AAC/B,iDAA8B;AAC9B,+CAA4B;AAC5B,2DAAwC;AACxC,kDAA+B;AAC/B,oDAAiC;AACjC,oDAAiC;AACjC,0CAAuB;AACvB,4CAAyB;AACzB,gDAA6B;AAC7B,iDAA8B;AAC9B,6CAA0B;AAC1B,iDAA8B;AAC9B,0CAAuB;AACvB,8CAA2B;AAC3B,gDAA6B;AAC7B,+CAA4B;AAC5B,kDAA+B;AAC/B,gDAA6B;AAC7B,kDAA+B;AAC/B,iDAA8B;AAC9B,kDAA+B;AAC/B,iDAA8B;AAC9B,6CAA0B;AAC1B,mDAAgC;AAChC,iDAA8B;AAC9B,6CAA0B;AAC1B,gDAA6B;AAC7B,8CAA2B;AAC3B,+CAA4B;AAC5B,sDAAmC;AACnC,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,6CAA0B;AAC1B,mDAAgC;AAChC,2CAAwB;AACxB,mDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,6CAA0B;AAC1B,8CAA2B;AAC3B,kDAA+B;AAC/B,wDAAqC;AACrC,sDAAmC;AACnC,kDAA+B;AAC/B,iDAA8B;AAC9B,+CAA4B;AAC5B,2DAAwC;AACxC,mDAAgC;AAChC,kDAA+B;AAC/B,oDAAiC;AACjC,+CAA4B;AAC5B,oDAAiC;AACjC,0CAAuB;AACvB,4CAAyB;AACzB,gDAA6B;AAC7B,iDAA8B;AAC9B,6CAA0B;AAC1B,iDAA8B;AAC9B,0CAAuB;AACvB,8CAA2B;AAC3B,gDAA6B;AAC7B,+CAA4B;AAC5B,kDAA+B;AAC/B,gDAA6B;AAC7B,kDAA+B;AAC/B,iDAA8B;AAC9B,kDAA+B;AAC/B,iDAA8B;AAC9B,6CAA0B;AAC1B,mDAAgC;AAChC,iDAA8B;AAC9B,6CAA0B;AAC1B,gDAA6B;AAC7B,8CAA2B;AAC3B,+CAA4B;AAC5B,sDAAmC;AACnC,iDAA8B;AAC9B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,6CAA0B;AAC1B,mDAAgC;AAChC,2CAAwB;AACxB,mDAAgC"}
@@ -0,0 +1,5 @@
1
+ import { Effect } from '@effect/core/io/Effect';
2
+ import { Enqueue } from '@effect/core/io/Queue';
3
+ import { Fx } from './Fx.js';
4
+ export declare function toEnqueue<A>(enqueue: Enqueue<A>): <R, E>(fx: Fx<R, E, A>) => Effect<R, E, void>;
5
+ //# sourceMappingURL=toEnqueue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEnqueue.d.ts","sourceRoot":"","sources":["../src/toEnqueue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAG5B,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAE/F"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toEnqueue = void 0;
4
+ const runObserve_js_1 = require("./runObserve.js");
5
+ function toEnqueue(enqueue) {
6
+ return (0, runObserve_js_1.runObserve)(enqueue.offer);
7
+ }
8
+ exports.toEnqueue = toEnqueue;
9
+ //# sourceMappingURL=toEnqueue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEnqueue.js","sourceRoot":"","sources":["../src/toEnqueue.ts"],"names":[],"mappings":";;;AAIA,mDAA4C;AAE5C,SAAgB,SAAS,CAAI,OAAmB;IAC9C,OAAO,IAAA,0BAAU,EAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAClC,CAAC;AAFD,8BAEC"}
@@ -0,0 +1,8 @@
1
+ import * as Stream from '@effect/core/stream/Stream';
2
+ import { Fx } from './Fx.js';
3
+ /**
4
+ * Converts an Fx into a Stream that utilizes a bufferSize for the underlying
5
+ * Queue that the Stream utilizes to pull from.
6
+ */
7
+ export declare const toStream: (bufferSize?: number) => <R, E, A>(fx: Fx<R, E, A>) => Stream.Stream<R, E, A>;
8
+ //# sourceMappingURL=toStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toStream.d.ts","sourceRoot":"","sources":["../src/toStream.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAA;AAKpD,OAAO,EAAW,EAAE,EAAE,MAAM,SAAS,CAAA;AAErC;;;GAGG;AACH,eAAO,MAAM,QAAQ,+EA2BlB,CAAA"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.toStream = void 0;
27
+ const Effect = __importStar(require("@effect/core/io/Effect"));
28
+ const Exit = __importStar(require("@effect/core/io/Exit"));
29
+ const Queue = __importStar(require("@effect/core/io/Queue"));
30
+ const Channel = __importStar(require("@effect/core/stream/Channel"));
31
+ const Stream = __importStar(require("@effect/core/stream/Stream"));
32
+ const Function_1 = require("@fp-ts/data/Function");
33
+ const Chunk = __importStar(require("@tsplus/stdlib/collections/Chunk"));
34
+ const Maybe = __importStar(require("@tsplus/stdlib/data/Maybe"));
35
+ const Fx_js_1 = require("./Fx.js");
36
+ /**
37
+ * Converts an Fx into a Stream that utilizes a bufferSize for the underlying
38
+ * Queue that the Stream utilizes to pull from.
39
+ */
40
+ const toStream = (bufferSize = 1024) => (fx) => {
41
+ return Stream.unwrapScoped(Effect.gen(function* ($) {
42
+ const queue = yield* $(Effect.acquireRelease(Queue.bounded(bufferSize), (q) => q.shutdown));
43
+ yield* $(Effect.forkScoped(fx.run((0, Fx_js_1.Emitter)((a) => queue.offer(Maybe.some(Exit.succeed(a))), (c) => queue.offer(Maybe.some(Exit.failCause(c))), queue.offer(Maybe.none)))));
44
+ return Stream.fromChannel(loop(queue, bufferSize));
45
+ }));
46
+ };
47
+ exports.toStream = toStream;
48
+ function loop(queue, bufferSize) {
49
+ return Channel.unwrap((0, Function_1.pipe)(queue.takeBetween(1, bufferSize), Effect.map((chunk) => {
50
+ const elements = [];
51
+ for (const element of chunk) {
52
+ if (Maybe.isNone(element)) {
53
+ return (0, Function_1.pipe)(Channel.write(Chunk.from(elements)), Channel.flatMap(() => Channel.succeed(void 0)));
54
+ }
55
+ if (Exit.isFailure(element.value)) {
56
+ const cause = element.value.cause;
57
+ return (0, Function_1.pipe)(Channel.write(Chunk.from(elements)), Channel.flatMap(() => Channel.failCause(cause)));
58
+ }
59
+ elements.push(element.value.value);
60
+ }
61
+ return (0, Function_1.pipe)(Channel.write(Chunk.from(elements)), Channel.flatMap(() => loop(queue, bufferSize)));
62
+ })));
63
+ }
64
+ //# sourceMappingURL=toStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toStream.js","sourceRoot":"","sources":["../src/toStream.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAgD;AAChD,2DAA4C;AAC5C,6DAA8C;AAC9C,qEAAsD;AACtD,mEAAoD;AACpD,mDAA2C;AAC3C,wEAAyD;AACzD,iEAAkD;AAElD,mCAAqC;AAErC;;;GAGG;AACI,MAAM,QAAQ,GACnB,CAAC,UAAU,GAAG,IAAI,EAAE,EAAE,CACtB,CAAU,EAAe,EAA0B,EAAE;IACnD,OAAO,MAAM,CAAC,YAAY,CACxB,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CACpB,MAAM,CAAC,cAAc,CACnB,KAAK,CAAC,OAAO,CAA+B,UAAU,CAAC,EACvD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAClB,CACF,CAAA;QAED,KAAK,CAAC,CAAC,CAAC,CACN,MAAM,CAAC,U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O,IAAA,eAAI,EACT,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACnC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAChD,CAAA;aACF;YAED,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SACnC;QAED,OAAO,IAAA,eAAI,EACT,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACnC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAC/C,CAAA;IACH,CAAC,CAAC,CACH,CACF,CAAA;AACH,CAAC"}
@@ -11,7 +11,7 @@ export declare const withParallelismUnbounded: <R, E, A>(fx: Fx<R, E, A>) => Fx<
11
11
  export declare const withFinalizer: <R2, X>(finalizer: Effect.Effect<R2, never, X>) => <R, E, A>(fx: Fx<R, E, A>) => Fx<Scope | R2 | R, E, A>;
12
12
  export declare const withFinalizerExit: <R2, X>(finalizer: <E, A>(exit: Exit<E, A>) => Effect.Effect<R2, never, X>) => <R, E_1, A_1>(fx: Fx<R, E_1, A_1>) => Fx<Scope | R2 | R, E_1, A_1>;
13
13
  export declare const withRuntimeFlags: (updated: RuntimeFlagsPatch) => <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
14
- export declare const scoped: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
14
+ export declare const scoped: <R, E, A>(fx: Fx<R, E, A>) => Fx<Exclude<R, Scope>, E, A>;
15
15
  export declare const withClock: (clock: Clock) => <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
16
16
  export declare const uninterruptible: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
17
17
  export declare const interruptible: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E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AAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GACtD,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAiCb"}
1
+ {"version":3,"file":"withEmitter.d.ts","sourceRoot":"","sources":["../src/withEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAOhD,OAAO,EAAW,EAAE,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACjC,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GACtD,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAiCb"}
@@ -28,6 +28,7 @@ const Effect = __importStar(require("@effect/core/io/Effect"));
28
28
  const Exit = __importStar(require("@effect/core/io/Exit"));
29
29
  const runtime_1 = require("@effect/core/io/Fiber/_internal/runtime");
30
30
  const Function_1 = require("@fp-ts/data/Function");
31
+ const Either_1 = require("@tsplus/stdlib/data/Either");
31
32
  const Fx_js_1 = require("./Fx.js");
32
33
  function withEmitter(f) {
33
34
  return (0, Fx_js_1.Fx)((sink) => {
@@ -38,13 +39,13 @@ function withEmitter(f) {
38
39
  f.start(eff);
39
40
  };
40
41
  let canceler = Effect.unit;
41
- return (0, Function_1.pipe)(Effect.addFinalizer(Effect.suspendSucceed(() => canceler)), Effect.zipRight(Effect.asyncEffect((cb) => {
42
+ return (0, Function_1.pipe)(Effect.addFinalizer(Effect.suspendSucceed(() => canceler)), Effect.zipRight(Effect.asyncInterrupt((cb) => {
42
43
  canceler = f({
43
44
  unsafeEmit: (a) => unsafeRun(sink.emit(a), (exit) => Exit.isFailure(exit) ? cb(Effect.failCause(exit.cause)) : undefined),
44
45
  unsafeFailCause: (e) => unsafeRun(sink.failCause(e), (0, Function_1.flow)(Effect.done, cb)),
45
46
  unsafeEnd: () => unsafeRun(sink.end, (0, Function_1.flow)(Effect.done, cb)),
46
47
  });
47
- return canceler;
48
+ return (0, Either_1.left)(canceler);
48
49
  })));
49
50
  });
50
51
  });
@@ -1 +1 @@
1
- {"version":3,"file":"withEmitter.js","sourceRoot":"","sources":["../src/withEmitter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAgD;AAChD,2DAA4C;AAC5C,qEAA6E;AAE7E,mDAAiD;AAEjD,mCAAqC;AAGrC,SAAgB,WAAW,CACzB,CAAuD;IAEvD,OAAO,IAAA,UAAE,EAAU,CAAK,IAAuB,EAAE,EAAE;QACjD,OAAO,MAAM,CAAC,gBAAgB,CAAiC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC/E,MAAM,SAAS,GAAG,CAChB,GAA2B,EAC3B,QAAyC,EACzC,EAAE;gBACF,MAAM,CAAC,GAAG,IAAA,6BAAmB,EAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,CAAA;gBAC9D,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;gBACvB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YACd,CAAC,CAAA;YAED,IAAI,QAAQ,GAAuB,MAAM,CAAC,IAAI,CAAA;YAE9C,OAAO,IAAA,eAAI,EACT,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,EAC1D,MAAM,CAAC,QAAQ,CACb,MAAM,CAAC,WAAW,CAA6C,CAAC,EAAE,EAAE,EAAE;gBACpE,QAAQ,GAAG,CAAC,CAAC;oBACX,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAChB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAC/B,IAAI,CAA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A;YAED,IAAI,QAAQ,GAAuB,MAAM,CAAC,IAAI,CAAA;YAE9C,OAAO,IAAA,eAAI,EACT,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,EAC1D,MAAM,CAAC,QAAQ,CACb,MAAM,CAAC,cAAc,CAAyB,CAAC,EAAE,EAAE,EAAE;gBACnD,QAAQ,GAAG,CAAC,CAAC;oBACX,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAChB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAC/B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CACpE;oBACH,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,IAAA,eAAI,EAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;oBAC3E,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,IAAA,eAAI,EAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;iBAC5D,CAAC,CAAA;gBAEF,OAAO,IAAA,aAAI,EAAC,QAAQ,CAAC,CAAA;YACvB,CAAC,CAAC,CACH,CACF,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAnCD,kCAmCC"}
@@ -0,0 +1,4 @@
1
+ import * as Q from '@effect/core/io/Queue';
2
+ import { Fx } from './Fx.js';
3
+ export declare function fromDequeue<A>(dequeue: Q.Dequeue<A>): Fx<never, never, A>;
4
+ //# sourceMappingURL=fromDequeue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromDequeue.d.ts","sourceRoot":"","sources":["../src/fromDequeue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,uBAAuB,CAAA;AAE1C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAWzE"}
@@ -0,0 +1,12 @@
1
+ import * as Effect from '@effect/core/io/Effect';
2
+ import { Fx } from './Fx.js';
3
+ export function fromDequeue(dequeue) {
4
+ return Fx((emitter) => Effect.gen(function* ($) {
5
+ while (!(yield* $(dequeue.isShutdown))) {
6
+ const a = yield* $(dequeue.take);
7
+ yield* $(emitter.emit(a));
8
+ }
9
+ yield* $(emitter.end);
10
+ }));
11
+ }
12
+ //# sourceMappingURL=fromDequeue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromDequeue.js","sourceRoot":"","sources":["../src/fromDequeue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAGhD,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B,MAAM,UAAU,WAAW,CAAI,OAAqB;IAClD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CACpB,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrB,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE;YACtC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;YAChC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SAC1B;QAED,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IACvB,CAAC,CAAC,CACH,CAAA;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as Hub from '@effect/core/io/Hub';
2
+ import { Fx } from './Fx.js';
3
+ export declare function fromHub<A>(hub: Hub.Hub<A>): Fx<never, never, A>;
4
+ //# sourceMappingURL=fromHub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromHub.d.ts","sourceRoot":"","sources":["../src/fromHub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAG1C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAK5B,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAE/D"}
package/esm/fromHub.js ADDED
@@ -0,0 +1,9 @@
1
+ import * as Effect from '@effect/core/io/Effect';
2
+ import { pipe } from '@fp-ts/data/Function';
3
+ import { fromDequeue } from './fromDequeue.js';
4
+ import { fromFxEffect } from './fromFxEffect.js';
5
+ import { scoped } from './transform.js';
6
+ export function fromHub(hub) {
7
+ return pipe(hub.subscribe, Effect.map(fromDequeue), fromFxEffect, scoped);
8
+ }
9
+ //# sourceMappingURL=fromHub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromHub.js","sourceRoot":"","sources":["../src/fromHub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC,MAAM,UAAU,OAAO,CAAI,GAAe;IACxC,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,CAAA;AAC3E,CAAC"}
package/esm/index.d.ts CHANGED
@@ -10,8 +10,10 @@ export * from './filterLoop.js';
10
10
  export * from './filterMap.js';
11
11
  export * from './flatMap.js';
12
12
  export * from './flatMapConcurrently.js';
13
+ export * from './fromDequeue.js';
13
14
  export * from './fromEffect.js';
14
15
  export * from './fromFxEffect.js';
16
+ export * from './fromHub.js';
15
17
  export * from './fromIterable.js';
16
18
  export * from './Fx.js';
17
19
  export * from './hold.js';
@@ -41,6 +43,8 @@ export * from './switchMap.js';
41
43
  export * from './takeWhile.js';
42
44
  export * from './tapEffect.js';
43
45
  export * from './throttle.js';
46
+ export * from './toEnqueue.js';
47
+ export * from './toStream.js';
44
48
  export * from './transform.js';
45
49
  export * from './until.js';
46
50
  export * from './withEmitter.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AAC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,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
package/esm/index.js CHANGED
@@ -10,8 +10,10 @@ export * from './filterLoop.js';
10
10
  export * from './filterMap.js';
11
11
  export * from './flatMap.js';
12
12
  export * from './flatMapConcurrently.js';
13
+ export * from './fromDequeue.js';
13
14
  export * from './fromEffect.js';
14
15
  export * from './fromFxEffect.js';
16
+ export * from './fromHub.js';
15
17
  export * from './fromIterable.js';
16
18
  export * from './Fx.js';
17
19
  export * from './hold.js';
@@ -41,6 +43,8 @@ export * from './switchMap.js';
41
43
  export * from './takeWhile.js';
42
44
  export * from './tapEffect.js';
43
45
  export * from './throttle.js';
46
+ export * from './toEnqueue.js';
47
+ export * from './toStream.js';
44
48
  export * from './transform.js';
45
49
  export * from './until.js';
46
50
  export * from './withEmitter.js';
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAA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AA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Effect } from '@effect/core/io/Effect';
2
+ import { Enqueue } from '@effect/core/io/Queue';
3
+ import { Fx } from './Fx.js';
4
+ export declare function toEnqueue<A>(enqueue: Enqueue<A>): <R, E>(fx: Fx<R, E, A>) => Effect<R, E, void>;
5
+ //# sourceMappingURL=toEnqueue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEnqueue.d.ts","sourceRoot":"","sources":["../src/toEnqueue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAG5B,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAE/F"}
@@ -0,0 +1,5 @@
1
+ import { runObserve } from './runObserve.js';
2
+ export function toEnqueue(enqueue) {
3
+ return runObserve(enqueue.offer);
4
+ }
5
+ //# sourceMappingURL=toEnqueue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEnqueue.js","sourceRoot":"","sources":["../src/toEnqueue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,MAAM,UAAU,SAAS,CAAI,OAAmB;IAC9C,OAAO,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAClC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as Stream from '@effect/core/stream/Stream';
2
+ import { Fx } from './Fx.js';
3
+ /**
4
+ * Converts an Fx into a Stream that utilizes a bufferSize for the underlying
5
+ * Queue that the Stream utilizes to pull from.
6
+ */
7
+ export declare const toStream: (bufferSize?: number) => <R, E, A>(fx: Fx<R, E, A>) => Stream.Stream<R, E, A>;
8
+ //# sourceMappingURL=toStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toStream.d.ts","sourceRoot":"","sources":["../src/toStream.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAA;AAKpD,OAAO,EAAW,EAAE,EAAE,MAAM,SAAS,CAAA;AAErC;;;GAGG;AACH,eAAO,MAAM,QAAQ,+EA2BlB,CAAA"}
@@ -0,0 +1,37 @@
1
+ import * as Effect from '@effect/core/io/Effect';
2
+ import * as Exit from '@effect/core/io/Exit';
3
+ import * as Queue from '@effect/core/io/Queue';
4
+ import * as Channel from '@effect/core/stream/Channel';
5
+ import * as Stream from '@effect/core/stream/Stream';
6
+ import { pipe } from '@fp-ts/data/Function';
7
+ import * as Chunk from '@tsplus/stdlib/collections/Chunk';
8
+ import * as Maybe from '@tsplus/stdlib/data/Maybe';
9
+ import { Emitter } from './Fx.js';
10
+ /**
11
+ * Converts an Fx into a Stream that utilizes a bufferSize for the underlying
12
+ * Queue that the Stream utilizes to pull from.
13
+ */
14
+ export const toStream = (bufferSize = 1024) => (fx) => {
15
+ return Stream.unwrapScoped(Effect.gen(function* ($) {
16
+ const queue = yield* $(Effect.acquireRelease(Queue.bounded(bufferSize), (q) => q.shutdown));
17
+ yield* $(Effect.forkScoped(fx.run(Emitter((a) => queue.offer(Maybe.some(Exit.succeed(a))), (c) => queue.offer(Maybe.some(Exit.failCause(c))), queue.offer(Maybe.none)))));
18
+ return Stream.fromChannel(loop(queue, bufferSize));
19
+ }));
20
+ };
21
+ function loop(queue, bufferSize) {
22
+ return Channel.unwrap(pipe(queue.takeBetween(1, bufferSize), Effect.map((chunk) => {
23
+ const elements = [];
24
+ for (const element of chunk) {
25
+ if (Maybe.isNone(element)) {
26
+ return pipe(Channel.write(Chunk.from(elements)), Channel.flatMap(() => Channel.succeed(void 0)));
27
+ }
28
+ if (Exit.isFailure(element.value)) {
29
+ const cause = element.value.cause;
30
+ return pipe(Channel.write(Chunk.from(elements)), Channel.flatMap(() => Channel.failCause(cause)));
31
+ }
32
+ elements.push(element.value.value);
33
+ }
34
+ return pipe(Channel.write(Chunk.from(elements)), Channel.flatMap(() => loop(queue, bufferSize)));
35
+ })));
36
+ }
37
+ //# sourceMappingURL=toStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toStream.js","sourceRoot":"","sources":["../src/toStream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAA;AACtD,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAM,MAAM,SAAS,CAAA;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GACnB,CAAC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OAAO,IAAI,CACT,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACnC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAC/C,CAAA;aACF;YAED,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACjC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAA;gBACjC,OAAO,IAAI,CACT,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACnC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAChD,CAAA;aACF;YAED,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;SACnC;QAED,OAAO,IAAI,CACT,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACnC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAC/C,CAAA;IACH,CAAC,CAAC,CACH,CACF,CAAA;AACH,CAAC"}
@@ -11,7 +11,7 @@ export declare const withParallelismUnbounded: <R, E, A>(fx: Fx<R, E, A>) => Fx<
11
11
  export declare const withFinalizer: <R2, X>(finalizer: Effect.Effect<R2, never, X>) => <R, E, A>(fx: Fx<R, E, A>) => Fx<Scope | R2 | R, E, A>;
12
12
  export declare const withFinalizerExit: <R2, X>(finalizer: <E, A>(exit: Exit<E, A>) => Effect.Effect<R2, never, X>) => <R, E_1, A_1>(fx: Fx<R, E_1, A_1>) => Fx<Scope | R2 | R, E_1, A_1>;
13
13
  export declare const withRuntimeFlags: (updated: RuntimeFlagsPatch) => <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
14
- export declare const scoped: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
14
+ export declare const scoped: <R, E, A>(fx: Fx<R, E, A>) => Fx<Exclude<R, Scope>, E, A>;
15
15
  export declare const withClock: (clock: Clock) => <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
16
16
  export declare const uninterruptible: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
17
17
  export declare const interruptible: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../src/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAA;AAEzD,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B,wBAAgB,SAAS,CAAC,EAAE,GAAG,KAAK,EAClC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,kDAG5E;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,6CAElD;AAED,eAAO,MAAM,wBAAwB,2CAA6C,CAAA;AAElF,eAAO,MAAM,aAAa,2GAC8B,CAAA;AAExD,eAAO,MAAM,iBAAiB,mJAEiC,CAAA;AAE/D,eAAO,MAAM,gBAAgB,YAAa,iBAAiB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sources":["../src/withEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAMhD,OAAO,EAAW,EAAE,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACjC,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GACtD,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAiCb"}
1
+ {"version":3,"file":"withEmitter.d.ts","sourceRoot":"","sources":["../src/withEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAOhD,OAAO,EAAW,EAAE,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACjC,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GACtD,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAiCb"}
@@ -2,6 +2,7 @@ import * as Effect from '@effect/core/io/Effect';
2
2
  import * as Exit from '@effect/core/io/Exit';
3
3
  import { unsafeForkUnstarted } from '@effect/core/io/Fiber/_internal/runtime';
4
4
  import { flow, pipe } from '@fp-ts/data/Function';
5
+ import { left } from '@tsplus/stdlib/data/Either';
5
6
  import { Fx } from './Fx.js';
6
7
  export function withEmitter(f) {
7
8
  return Fx((sink) => {
@@ -12,13 +13,13 @@ export function withEmitter(f) {
12
13
  f.start(eff);
13
14
  };
14
15
  let canceler = Effect.unit;
15
- return pipe(Effect.addFinalizer(Effect.suspendSucceed(() => canceler)), Effect.zipRight(Effect.asyncEffect((cb) => {
16
+ return pipe(Effect.addFinalizer(Effect.suspendSucceed(() => canceler)), Effect.zipRight(Effect.asyncInterrupt((cb) => {
16
17
  canceler = f({
17
18
  unsafeEmit: (a) => unsafeRun(sink.emit(a), (exit) => Exit.isFailure(exit) ? cb(Effect.failCause(exit.cause)) : undefined),
18
19
  unsafeFailCause: (e) => unsafeRun(sink.failCause(e), flow(Effect.done, cb)),
19
20
  unsafeEnd: () => unsafeRun(sink.end, flow(Effect.done, cb)),
20
21
  });
21
- return canceler;
22
+ return left(canceler);
22
23
  })));
23
24
  });
24
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"withEmitter.js","sourceRoot":"","sources":["../src/withEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAE7E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAW,EAAE,EAAE,MAAM,SAAS,CAAA;AAGrC,MAAM,UAAU,WAAW,CACzB,CAAuD;IAEvD,OAAO,EAAE,CAAU,CAAK,IAAuB,EAAE,EAAE;QACjD,OAAO,MAAM,CAAC,gBAAgB,CAAiC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC/E,MAAM,SAAS,GAAG,CAChB,GAA2B,EAC3B,QAAyC,EACzC,EAAE;gBACF,MAAM,CAAC,GAAG,mBAAmB,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,CAAA;gBAC9D,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;gBACvB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YACd,CAAC,CAAA;YAED,IAAI,QAAQ,GAAuB,MAAM,CAAC,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CAAC,CAAC;oBAC3E,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;iBAC5D,CAAC,CAAA;gBAEF,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAA;YACvB,CAAC,CAAC,CACH,CACF,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typed/fx",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "description": "High-performance Asynchronous Effects",
5
5
  "type": "module",
6
6
  "main": "esm/index.js",
@@ -246,6 +246,16 @@
246
246
  "types": "./esm/flatMapConcurrently.d.ts"
247
247
  }
248
248
  },
249
+ "./fromDequeue": {
250
+ "require": {
251
+ "default": "./cjs/fromDequeue.js",
252
+ "types": "./cjs/fromDequeue.d.ts"
253
+ },
254
+ "import": {
255
+ "default": "./esm/fromDequeue.js",
256
+ "types": "./esm/fromDequeue.d.ts"
257
+ }
258
+ },
249
259
  "./fromEffect": {
250
260
  "require": {
251
261
  "default": "./cjs/fromEffect.js",
@@ -266,6 +276,16 @@
266
276
  "types": "./esm/fromFxEffect.d.ts"
267
277
  }
268
278
  },
279
+ "./fromHub": {
280
+ "require": {
281
+ "default": "./cjs/fromHub.js",
282
+ "types": "./cjs/fromHub.d.ts"
283
+ },
284
+ "import": {
285
+ "default": "./esm/fromHub.js",
286
+ "types": "./esm/fromHub.d.ts"
287
+ }
288
+ },
269
289
  "./fromIterable": {
270
290
  "require": {
271
291
  "default": "./cjs/fromIterable.js",
@@ -536,6 +556,26 @@
536
556
  "types": "./esm/throttle.d.ts"
537
557
  }
538
558
  },
559
+ "./toEnqueue": {
560
+ "require": {
561
+ "default": "./cjs/toEnqueue.js",
562
+ "types": "./cjs/toEnqueue.d.ts"
563
+ },
564
+ "import": {
565
+ "default": "./esm/toEnqueue.js",
566
+ "types": "./esm/toEnqueue.d.ts"
567
+ }
568
+ },
569
+ "./toStream": {
570
+ "require": {
571
+ "default": "./cjs/toStream.js",
572
+ "types": "./cjs/toStream.d.ts"
573
+ },
574
+ "import": {
575
+ "default": "./esm/toStream.js",
576
+ "types": "./esm/toStream.d.ts"
577
+ }
578
+ },
539
579
  "./transform": {
540
580
  "require": {
541
581
  "default": "./cjs/transform.js",
@@ -0,0 +1,17 @@
1
+ import * as Effect from '@effect/core/io/Effect'
2
+ import * as Q from '@effect/core/io/Queue'
3
+
4
+ import { Fx } from './Fx.js'
5
+
6
+ export function fromDequeue<A>(dequeue: Q.Dequeue<A>): Fx<never, never, A> {
7
+ return Fx((emitter) =>
8
+ Effect.gen(function* ($) {
9
+ while (!(yield* $(dequeue.isShutdown))) {
10
+ const a = yield* $(dequeue.take)
11
+ yield* $(emitter.emit(a))
12
+ }
13
+
14
+ yield* $(emitter.end)
15
+ }),
16
+ )
17
+ }
package/src/fromHub.ts ADDED
@@ -0,0 +1,12 @@
1
+ import * as Effect from '@effect/core/io/Effect'
2
+ import * as Hub from '@effect/core/io/Hub'
3
+ import { pipe } from '@fp-ts/data/Function'
4
+
5
+ import { Fx } from './Fx.js'
6
+ import { fromDequeue } from './fromDequeue.js'
7
+ import { fromFxEffect } from './fromFxEffect.js'
8
+ import { scoped } from './transform.js'
9
+
10
+ export function fromHub<A>(hub: Hub.Hub<A>): Fx<never, never, A> {
11
+ return pipe(hub.subscribe, Effect.map(fromDequeue), fromFxEffect, scoped)
12
+ }
package/src/index.ts CHANGED
@@ -10,8 +10,10 @@ export * from './filterLoop.js'
10
10
  export * from './filterMap.js'
11
11
  export * from './flatMap.js'
12
12
  export * from './flatMapConcurrently.js'
13
+ export * from './fromDequeue.js'
13
14
  export * from './fromEffect.js'
14
15
  export * from './fromFxEffect.js'
16
+ export * from './fromHub.js'
15
17
  export * from './fromIterable.js'
16
18
  export * from './Fx.js'
17
19
  export * from './hold.js'
@@ -41,6 +43,8 @@ export * from './switchMap.js'
41
43
  export * from './takeWhile.js'
42
44
  export * from './tapEffect.js'
43
45
  export * from './throttle.js'
46
+ export * from './toEnqueue.js'
47
+ export * from './toStream.js'
44
48
  export * from './transform.js'
45
49
  export * from './until.js'
46
50
  export * from './withEmitter.js'
@@ -0,0 +1,9 @@
1
+ import { Effect } from '@effect/core/io/Effect'
2
+ import { Enqueue } from '@effect/core/io/Queue'
3
+
4
+ import { Fx } from './Fx.js'
5
+ import { runObserve } from './runObserve.js'
6
+
7
+ export function toEnqueue<A>(enqueue: Enqueue<A>): <R, E>(fx: Fx<R, E, A>) => Effect<R, E, void> {
8
+ return runObserve(enqueue.offer)
9
+ }
@@ -0,0 +1,81 @@
1
+ import * as Effect from '@effect/core/io/Effect'
2
+ import * as Exit from '@effect/core/io/Exit'
3
+ import * as Queue from '@effect/core/io/Queue'
4
+ import * as Channel from '@effect/core/stream/Channel'
5
+ import * as Stream from '@effect/core/stream/Stream'
6
+ import { pipe } from '@fp-ts/data/Function'
7
+ import * as Chunk from '@tsplus/stdlib/collections/Chunk'
8
+ import * as Maybe from '@tsplus/stdlib/data/Maybe'
9
+
10
+ import { Emitter, Fx } from './Fx.js'
11
+
12
+ /**
13
+ * Converts an Fx into a Stream that utilizes a bufferSize for the underlying
14
+ * Queue that the Stream utilizes to pull from.
15
+ */
16
+ export const toStream =
17
+ (bufferSize = 1024) =>
18
+ <R, E, A>(fx: Fx<R, E, A>): Stream.Stream<R, E, A> => {
19
+ return Stream.unwrapScoped(
20
+ Effect.gen(function* ($) {
21
+ const queue = yield* $(
22
+ Effect.acquireRelease(
23
+ Queue.bounded<Maybe.Maybe<Exit.Exit<E, A>>>(bufferSize),
24
+ (q) => q.shutdown,
25
+ ),
26
+ )
27
+
28
+ yield* $(
29
+ Effect.forkScoped(
30
+ fx.run(
31
+ Emitter(
32
+ (a) => queue.offer(Maybe.some(Exit.succeed(a))),
33
+ (c) => queue.offer(Maybe.some(Exit.failCause(c))),
34
+ queue.offer(Maybe.none),
35
+ ),
36
+ ),
37
+ ),
38
+ )
39
+
40
+ return Stream.fromChannel(loop(queue, bufferSize))
41
+ }),
42
+ )
43
+ }
44
+
45
+ function loop<E, A>(
46
+ queue: Queue.Queue<Maybe.Maybe<Exit.Exit<E, A>>>,
47
+ bufferSize: number,
48
+ ): Channel.Channel<never, unknown, unknown, unknown, E, Chunk.Chunk<A>, unknown> {
49
+ return Channel.unwrap(
50
+ pipe(
51
+ queue.takeBetween(1, bufferSize),
52
+ Effect.map((chunk) => {
53
+ const elements: Array<A> = []
54
+
55
+ for (const element of chunk) {
56
+ if (Maybe.isNone(element)) {
57
+ return pipe(
58
+ Channel.write(Chunk.from(elements)),
59
+ Channel.flatMap(() => Channel.succeed(void 0)),
60
+ )
61
+ }
62
+
63
+ if (Exit.isFailure(element.value)) {
64
+ const cause = element.value.cause
65
+ return pipe(
66
+ Channel.write(Chunk.from(elements)),
67
+ Channel.flatMap(() => Channel.failCause(cause)),
68
+ )
69
+ }
70
+
71
+ elements.push(element.value.value)
72
+ }
73
+
74
+ return pipe(
75
+ Channel.write(Chunk.from(elements)),
76
+ Channel.flatMap(() => loop(queue, bufferSize)),
77
+ )
78
+ }),
79
+ ),
80
+ )
81
+ }
package/src/transform.ts CHANGED
@@ -29,7 +29,9 @@ export const withFinalizerExit = <R2, X>(
29
29
  export const withRuntimeFlags = (updated: RuntimeFlagsPatch) =>
30
30
  transform(Effect.withRuntimeFlags(updated))
31
31
 
32
- export const scoped = transform(Effect.scoped)
32
+ export const scoped = transform(Effect.scoped) as <R, E, A>(
33
+ fx: Fx<R, E, A>,
34
+ ) => Fx<Exclude<R, Scope>, E, A>
33
35
 
34
36
  export const withClock = (clock: Clock) => transform(Effect.withClock(clock))
35
37
 
@@ -3,6 +3,7 @@ import * as Exit from '@effect/core/io/Exit'
3
3
  import { unsafeForkUnstarted } from '@effect/core/io/Fiber/_internal/runtime'
4
4
  import { Scope } from '@effect/core/io/Scope'
5
5
  import { flow, pipe } from '@fp-ts/data/Function'
6
+ import { left } from '@tsplus/stdlib/data/Either'
6
7
 
7
8
  import { Emitter, Fx } from './Fx.js'
8
9
  import type { UnsafeEmitter } from './Subject.js'
@@ -26,7 +27,7 @@ export function withEmitter<R, E, A>(
26
27
  return pipe(
27
28
  Effect.addFinalizer(Effect.suspendSucceed(() => canceler)),
28
29
  Effect.zipRight(
29
- Effect.asyncEffect<R | R2, never, unknown, R | R2, never, any>((cb) => {
30
+ Effect.asyncInterrupt<R | R2, never, unknown>((cb) => {
30
31
  canceler = f({
31
32
  unsafeEmit: (a) =>
32
33
  unsafeRun(sink.emit(a), (exit) =>
@@ -36,7 +37,7 @@ export function withEmitter<R, E, A>(
36
37
  unsafeEnd: () => unsafeRun(sink.end, flow(Effect.done, cb)),
37
38
  })
38
39
 
39
- return canceler
40
+ return left(canceler)
40
41
  }),
41
42
  ),
42
43
  )