From 538a940fd5bc57f805ec89303860975905150f6a Mon Sep 17 00:00:00 2001 From: "Mohammed S. Yaseen" <51242349+mohasarc@users.noreply.github.com> Date: Tue, 23 Apr 2024 10:37:06 +0000 Subject: [PATCH] test: fix failing test --- coverage/clover.xml | 319 +++++----- coverage/coverage-final.json | 8 +- coverage/lcov-report/PTask.ts.html | 118 ++-- .../ProcessingPriorityQueue.ts.html | 110 ++-- .../lcov-report/SubscribableQueueItem.ts.html | 34 +- coverage/lcov-report/index.html | 46 +- coverage/lcov-report/index.ts.html | 4 +- coverage/lcov.info | 586 +++++++++--------- tests/unit/PTask.test.ts | 10 +- 9 files changed, 648 insertions(+), 587 deletions(-) diff --git a/coverage/clover.xml b/coverage/clover.xml index 328cffd..9ce2faf 100644 --- a/coverage/clover.xml +++ b/coverage/clover.xml @@ -1,193 +1,198 @@ - - - - - + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - + + - - + + - + - + - + - + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - + + + + + - - - - + + + + - - - - - - - - + + + + + + + + - + - + diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json index 04ec0e8..7294c05 100644 --- a/coverage/coverage-final.json +++ b/coverage/coverage-final.json @@ -1,5 +1,5 @@ -{"D:\\Projects\\priority-task\\lib\\PTask.ts": {"path":"D:\\Projects\\priority-task\\lib\\PTask.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":64}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":36}},"2":{"start":{"line":39,"column":10},"end":{"line":39,"column":39}},"3":{"start":{"line":59,"column":10},"end":{"line":59,"column":36}},"4":{"start":{"line":61,"column":10},"end":{"line":61,"column":47}},"5":{"start":{"line":63,"column":9},"end":{"line":65,"column":4}},"6":{"start":{"line":64,"column":21},"end":{"line":64,"column":32}},"7":{"start":{"line":68,"column":4},"end":{"line":68,"column":38}},"8":{"start":{"line":69,"column":4},"end":{"line":69,"column":36}},"9":{"start":{"line":70,"column":4},"end":{"line":70,"column":30}},"10":{"start":{"line":71,"column":4},"end":{"line":71,"column":32}},"11":{"start":{"line":72,"column":4},"end":{"line":72,"column":56}},"12":{"start":{"line":72,"column":51},"end":{"line":72,"column":54}},"13":{"start":{"line":73,"column":4},"end":{"line":73,"column":58}},"14":{"start":{"line":73,"column":53},"end":{"line":73,"column":56}},"15":{"start":{"line":74,"column":4},"end":{"line":74,"column":51}},"16":{"start":{"line":75,"column":4},"end":{"line":76,"column":80}},"17":{"start":{"line":76,"column":69},"end":{"line":76,"column":78}},"18":{"start":{"line":77,"column":4},"end":{"line":77,"column":61}},"19":{"start":{"line":80,"column":4},"end":{"line":82,"column":null}},"20":{"start":{"line":81,"column":6},"end":{"line":81,"column":47}},"21":{"start":{"line":84,"column":4},"end":{"line":84,"column":52}},"22":{"start":{"line":88,"column":19},"end":{"line":90,"column":19}},"23":{"start":{"line":91,"column":19},"end":{"line":91,"column":59}},"24":{"start":{"line":92,"column":4},"end":{"line":92,"column":31}},"25":{"start":{"line":93,"column":4},"end":{"line":93,"column":31}},"26":{"start":{"line":94,"column":4},"end":{"line":94,"column":18}},"27":{"start":{"line":98,"column":4},"end":{"line":98,"column":41}},"28":{"start":{"line":98,"column":34},"end":{"line":98,"column":41}},"29":{"start":{"line":100,"column":4},"end":{"line":100,"column":28}},"30":{"start":{"line":101,"column":19},"end":{"line":103,"column":17}},"31":{"start":{"line":104,"column":4},"end":{"line":104,"column":61}},"32":{"start":{"line":105,"column":4},"end":{"line":105,"column":56}},"33":{"start":{"line":109,"column":4},"end":{"line":109,"column":41}},"34":{"start":{"line":109,"column":34},"end":{"line":109,"column":41}},"35":{"start":{"line":111,"column":4},"end":{"line":111,"column":29}},"36":{"start":{"line":112,"column":4},"end":{"line":112,"column":57}},"37":{"start":{"line":113,"column":4},"end":{"line":113,"column":69}},"38":{"start":{"line":119,"column":4},"end":{"line":119,"column":70}},"39":{"start":{"line":119,"column":36},"end":{"line":119,"column":70}},"40":{"start":{"line":121,"column":23},"end":{"line":121,"column":35}},"41":{"start":{"line":122,"column":4},"end":{"line":122,"column":30}},"42":{"start":{"line":123,"column":17},"end":{"line":123,"column":21}},"43":{"start":{"line":124,"column":18},"end":{"line":124,"column":41}},"44":{"start":{"line":126,"column":4},"end":{"line":144,"column":null}},"45":{"start":{"line":127,"column":6},"end":{"line":136,"column":null}},"46":{"start":{"line":128,"column":8},"end":{"line":128,"column":79}},"47":{"start":{"line":130,"column":8},"end":{"line":135,"column":null}},"48":{"start":{"line":131,"column":10},"end":{"line":131,"column":80}},"49":{"start":{"line":133,"column":10},"end":{"line":133,"column":25}},"50":{"start":{"line":134,"column":10},"end":{"line":134,"column":37}},"51":{"start":{"line":138,"column":6},"end":{"line":143,"column":null}},"52":{"start":{"line":139,"column":8},"end":{"line":139,"column":79}},"53":{"start":{"line":141,"column":8},"end":{"line":141,"column":23}},"54":{"start":{"line":142,"column":8},"end":{"line":142,"column":35}},"55":{"start":{"line":146,"column":4},"end":{"line":150,"column":null}},"56":{"start":{"line":147,"column":6},"end":{"line":147,"column":22}},"57":{"start":{"line":149,"column":6},"end":{"line":149,"column":32}},"58":{"start":{"line":151,"column":4},"end":{"line":151,"column":29}},"59":{"start":{"line":155,"column":4},"end":{"line":155,"column":23}},"60":{"start":{"line":156,"column":4},"end":{"line":156,"column":77}},"61":{"start":{"line":160,"column":4},"end":{"line":160,"column":26}},"62":{"start":{"line":164,"column":4},"end":{"line":164,"column":21}},"63":{"start":{"line":168,"column":4},"end":{"line":168,"column":22}},"64":{"start":{"line":172,"column":4},"end":{"line":175,"column":6}},"65":{"start":{"line":173,"column":6},"end":{"line":173,"column":31}},"66":{"start":{"line":174,"column":6},"end":{"line":174,"column":41}},"67":{"start":{"line":179,"column":4},"end":{"line":179,"column":24}},"68":{"start":{"line":183,"column":4},"end":{"line":185,"column":69}},"69":{"start":{"line":189,"column":4},"end":{"line":189,"column":79}},"70":{"start":{"line":189,"column":20},"end":{"line":189,"column":79}},"71":{"start":{"line":190,"column":4},"end":{"line":190,"column":54}},"72":{"start":{"line":34,"column":0},"end":{"line":34,"column":13}},"73":{"start":{"line":35,"column":17},"end":{"line":35,"column":27}},"74":{"start":{"line":37,"column":17},"end":{"line":37,"column":72}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":67,"column":2},"end":{"line":67,"column":14}},"loc":{"start":{"line":67,"column":41},"end":{"line":85,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":64,"column":15},"end":{"line":64,"column":18}},"loc":{"start":{"line":64,"column":21},"end":{"line":64,"column":32}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":72,"column":39},"end":{"line":72,"column":40}},"loc":{"start":{"line":72,"column":51},"end":{"line":72,"column":54}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":73,"column":41},"end":{"line":73,"column":42}},"loc":{"start":{"line":73,"column":53},"end":{"line":73,"column":56}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":74,"column":41},"end":{"line":74,"column":44}},"loc":{"start":{"line":74,"column":46},"end":{"line":74,"column":49}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":76,"column":31},"end":{"line":76,"column":32}},"loc":{"start":{"line":76,"column":69},"end":{"line":76,"column":78}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":87,"column":9},"end":{"line":87,"column":14}},"loc":{"start":{"line":87,"column":18},"end":{"line":95,"column":3}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":97,"column":9},"end":{"line":97,"column":14}},"loc":{"start":{"line":97,"column":20},"end":{"line":106,"column":3}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":108,"column":9},"end":{"line":108,"column":15}},"loc":{"start":{"line":108,"column":15},"end":{"line":114,"column":3}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":116,"column":9},"end":{"line":116,"column":14}},"loc":{"start":{"line":117,"column":52},"end":{"line":152,"column":3}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":154,"column":2},"end":{"line":154,"column":13}},"loc":{"start":{"line":154,"column":31},"end":{"line":157,"column":3}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":159,"column":2},"end":{"line":159,"column":13}},"loc":{"start":{"line":159,"column":21},"end":{"line":161,"column":3}}},"12":{"name":"(anonymous_13)","decl":{"start":{"line":163,"column":2},"end":{"line":163,"column":13}},"loc":{"start":{"line":163,"column":16},"end":{"line":165,"column":3}}},"13":{"name":"(anonymous_14)","decl":{"start":{"line":167,"column":2},"end":{"line":167,"column":13}},"loc":{"start":{"line":167,"column":17},"end":{"line":169,"column":3}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":171,"column":2},"end":{"line":171,"column":13}},"loc":{"start":{"line":171,"column":18},"end":{"line":176,"column":3}}},"15":{"name":"(anonymous_16)","decl":{"start":{"line":172,"column":11},"end":{"line":172,"column":12}},"loc":{"start":{"line":172,"column":44},"end":{"line":175,"column":5}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":178,"column":2},"end":{"line":178,"column":13}},"loc":{"start":{"line":178,"column":19},"end":{"line":180,"column":3}}},"17":{"name":"(anonymous_18)","decl":{"start":{"line":182,"column":10},"end":{"line":182,"column":29}},"loc":{"start":{"line":182,"column":29},"end":{"line":186,"column":3}}},"18":{"name":"(anonymous_19)","decl":{"start":{"line":188,"column":9},"end":{"line":188,"column":15}},"loc":{"start":{"line":188,"column":47},"end":{"line":191,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":69,"column":17},"end":{"line":69,"column":35}},"type":"binary-expr","locations":[{"start":{"line":69,"column":17},"end":{"line":69,"column":30}},{"start":{"line":69,"column":34},"end":{"line":69,"column":35}}]},"1":{"loc":{"start":{"line":72,"column":19},"end":{"line":72,"column":55}},"type":"binary-expr","locations":[{"start":{"line":72,"column":19},"end":{"line":72,"column":34}},{"start":{"line":72,"column":39},"end":{"line":72,"column":54}}]},"2":{"loc":{"start":{"line":73,"column":20},"end":{"line":73,"column":57}},"type":"binary-expr","locations":[{"start":{"line":73,"column":20},"end":{"line":73,"column":36}},{"start":{"line":73,"column":41},"end":{"line":73,"column":56}}]},"3":{"loc":{"start":{"line":74,"column":20},"end":{"line":74,"column":50}},"type":"binary-expr","locations":[{"start":{"line":74,"column":20},"end":{"line":74,"column":36}},{"start":{"line":74,"column":41},"end":{"line":74,"column":49}}]},"4":{"loc":{"start":{"line":76,"column":6},"end":{"line":76,"column":79}},"type":"binary-expr","locations":[{"start":{"line":76,"column":6},"end":{"line":76,"column":26}},{"start":{"line":76,"column":31},"end":{"line":76,"column":78}}]},"5":{"loc":{"start":{"line":77,"column":21},"end":{"line":77,"column":60}},"type":"binary-expr","locations":[{"start":{"line":77,"column":21},"end":{"line":77,"column":38}},{"start":{"line":77,"column":42},"end":{"line":77,"column":60}}]},"6":{"loc":{"start":{"line":80,"column":4},"end":{"line":82,"column":null}},"type":"if","locations":[{"start":{"line":80,"column":4},"end":{"line":82,"column":null}}]},"7":{"loc":{"start":{"line":98,"column":4},"end":{"line":98,"column":41}},"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":41}}]},"8":{"loc":{"start":{"line":109,"column":4},"end":{"line":109,"column":41}},"type":"if","locations":[{"start":{"line":109,"column":4},"end":{"line":109,"column":41}}]},"9":{"loc":{"start":{"line":117,"column":4},"end":{"line":117,"column":52}},"type":"default-arg","locations":[{"start":{"line":117,"column":36},"end":{"line":117,"column":52}}]},"10":{"loc":{"start":{"line":119,"column":4},"end":{"line":119,"column":70}},"type":"if","locations":[{"start":{"line":119,"column":4},"end":{"line":119,"column":70}}]},"11":{"loc":{"start":{"line":126,"column":4},"end":{"line":144,"column":null}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":144,"column":null}},{"start":{"line":137,"column":11},"end":{"line":144,"column":null}}]},"12":{"loc":{"start":{"line":146,"column":4},"end":{"line":150,"column":null}},"type":"if","locations":[{"start":{"line":146,"column":4},"end":{"line":150,"column":null}},{"start":{"line":148,"column":11},"end":{"line":150,"column":null}}]},"13":{"loc":{"start":{"line":189,"column":4},"end":{"line":189,"column":79}},"type":"if","locations":[{"start":{"line":189,"column":4},"end":{"line":189,"column":79}}]},"14":{"loc":{"start":{"line":189,"column":27},"end":{"line":189,"column":78}},"type":"cond-expr","locations":[{"start":{"line":189,"column":72},"end":{"line":189,"column":76}},{"start":{"line":189,"column":76},"end":{"line":189,"column":78}}]},"15":{"loc":{"start":{"line":189,"column":27},"end":{"line":189,"column":76}},"type":"binary-expr","locations":[{"start":{"line":189,"column":27},"end":{"line":189,"column":76}},{"start":{"line":189,"column":72},"end":{"line":189,"column":76}}]},"16":{"loc":{"start":{"line":190,"column":11},"end":{"line":190,"column":53}},"type":"cond-expr","locations":[{"start":{"line":190,"column":47},"end":{"line":190,"column":51}},{"start":{"line":190,"column":51},"end":{"line":190,"column":53}}]},"17":{"loc":{"start":{"line":190,"column":11},"end":{"line":190,"column":51}},"type":"binary-expr","locations":[{"start":{"line":190,"column":11},"end":{"line":190,"column":51}},{"start":{"line":190,"column":47},"end":{"line":190,"column":51}}]}},"s":{"0":1,"1":1,"2":40,"3":40,"4":40,"5":40,"6":96,"7":40,"8":40,"9":40,"10":40,"11":40,"12":6,"13":40,"14":3,"15":40,"16":40,"17":32,"18":40,"19":40,"20":4,"21":40,"22":39,"23":24,"24":24,"25":24,"26":24,"27":13,"28":2,"29":11,"30":11,"31":10,"32":10,"33":3,"34":0,"35":3,"36":3,"37":3,"38":10,"39":0,"40":10,"41":10,"42":10,"43":10,"44":10,"45":8,"46":8,"47":6,"48":6,"49":1,"50":1,"51":2,"52":2,"53":1,"54":1,"55":10,"56":8,"57":2,"58":10,"59":6,"60":6,"61":136,"62":370,"63":42,"64":29,"65":29,"66":29,"67":129,"68":24,"69":4,"70":0,"71":4,"72":1,"73":1,"74":1},"f":{"0":40,"1":96,"2":6,"3":3,"4":7,"5":32,"6":39,"7":13,"8":3,"9":10,"10":6,"11":136,"12":370,"13":42,"14":29,"15":29,"16":129,"17":24,"18":4},"b":{"0":[40,40],"1":[40,36],"2":[40,40],"3":[40,39],"4":[40,39],"5":[40,36],"6":[4],"7":[2],"8":[0],"9":[2],"10":[0],"11":[8,2],"12":[8,2],"13":[0],"14":[0,0],"15":[0,0],"16":[4,0],"17":[4,4]}} -,"D:\\Projects\\priority-task\\lib\\ProcessingPriorityQueue.ts": {"path":"D:\\Projects\\priority-task\\lib\\ProcessingPriorityQueue.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":60}},"2":{"start":{"line":39,"column":30},"end":{"line":39,"column":57}},"3":{"start":{"line":22,"column":10},"end":{"line":22,"column":65}},"4":{"start":{"line":27,"column":10},"end":{"line":27,"column":70}},"5":{"start":{"line":32,"column":10},"end":{"line":32,"column":85}},"6":{"start":{"line":40,"column":4},"end":{"line":43,"column":56}},"7":{"start":{"line":43,"column":9},"end":{"line":43,"column":54}},"8":{"start":{"line":47,"column":4},"end":{"line":52,"column":null}},"9":{"start":{"line":48,"column":31},"end":{"line":48,"column":63}},"10":{"start":{"line":49,"column":20},"end":{"line":49,"column":60}},"11":{"start":{"line":50,"column":6},"end":{"line":50,"column":46}},"12":{"start":{"line":51,"column":6},"end":{"line":51,"column":36}},"13":{"start":{"line":54,"column":20},"end":{"line":54,"column":74}},"14":{"start":{"line":55,"column":4},"end":{"line":57,"column":7}},"15":{"start":{"line":56,"column":6},"end":{"line":56,"column":21}},"16":{"start":{"line":59,"column":4},"end":{"line":59,"column":19}},"17":{"start":{"line":63,"column":17},"end":{"line":63,"column":86}},"18":{"start":{"line":64,"column":4},"end":{"line":64,"column":50}},"19":{"start":{"line":66,"column":4},"end":{"line":66,"column":16}},"20":{"start":{"line":70,"column":4},"end":{"line":70,"column":49}},"21":{"start":{"line":70,"column":42},"end":{"line":70,"column":49}},"22":{"start":{"line":72,"column":18},"end":{"line":72,"column":50}},"23":{"start":{"line":73,"column":4},"end":{"line":73,"column":24}},"24":{"start":{"line":75,"column":21},"end":{"line":75,"column":56}},"25":{"start":{"line":76,"column":4},"end":{"line":76,"column":47}},"26":{"start":{"line":77,"column":4},"end":{"line":77,"column":37}},"27":{"start":{"line":81,"column":4},"end":{"line":81,"column":77}},"28":{"start":{"line":81,"column":43},"end":{"line":81,"column":77}},"29":{"start":{"line":83,"column":18},"end":{"line":83,"column":50}},"30":{"start":{"line":84,"column":4},"end":{"line":84,"column":24}},"31":{"start":{"line":85,"column":4},"end":{"line":85,"column":71}},"32":{"start":{"line":86,"column":4},"end":{"line":86,"column":16}},"33":{"start":{"line":91,"column":4},"end":{"line":92,"column":69}},"34":{"start":{"line":92,"column":6},"end":{"line":92,"column":69}},"35":{"start":{"line":95,"column":4},"end":{"line":96,"column":63}},"36":{"start":{"line":96,"column":6},"end":{"line":96,"column":63}},"37":{"start":{"line":98,"column":4},"end":{"line":98,"column":63}},"38":{"start":{"line":102,"column":4},"end":{"line":102,"column":48}},"39":{"start":{"line":103,"column":4},"end":{"line":103,"column":75}},"40":{"start":{"line":105,"column":4},"end":{"line":105,"column":16}},"41":{"start":{"line":109,"column":4},"end":{"line":109,"column":53}},"42":{"start":{"line":110,"column":4},"end":{"line":115,"column":null}},"43":{"start":{"line":111,"column":6},"end":{"line":111,"column":49}},"44":{"start":{"line":114,"column":6},"end":{"line":114,"column":78}},"45":{"start":{"line":122,"column":4},"end":{"line":130,"column":null}},"46":{"start":{"line":124,"column":35},"end":{"line":124,"column":71}},"47":{"start":{"line":125,"column":6},"end":{"line":125,"column":80}},"48":{"start":{"line":127,"column":21},"end":{"line":127,"column":74}},"49":{"start":{"line":128,"column":6},"end":{"line":128,"column":21}},"50":{"start":{"line":129,"column":6},"end":{"line":129,"column":20}},"51":{"start":{"line":135,"column":4},"end":{"line":142,"column":null}},"52":{"start":{"line":136,"column":20},"end":{"line":136,"column":52}},"53":{"start":{"line":137,"column":6},"end":{"line":137,"column":26}},"54":{"start":{"line":138,"column":6},"end":{"line":138,"column":78}},"55":{"start":{"line":139,"column":6},"end":{"line":139,"column":42}},"56":{"start":{"line":141,"column":6},"end":{"line":141,"column":18}},"57":{"start":{"line":144,"column":4},"end":{"line":144,"column":63}},"58":{"start":{"line":148,"column":4},"end":{"line":148,"column":54}},"59":{"start":{"line":148,"column":42},"end":{"line":148,"column":54}},"60":{"start":{"line":150,"column":23},"end":{"line":150,"column":54}},"61":{"start":{"line":151,"column":4},"end":{"line":151,"column":49}},"62":{"start":{"line":154,"column":18},"end":{"line":154,"column":52}},"63":{"start":{"line":155,"column":4},"end":{"line":155,"column":54}},"64":{"start":{"line":156,"column":4},"end":{"line":156,"column":34}},"65":{"start":{"line":159,"column":4},"end":{"line":159,"column":39}},"66":{"start":{"line":159,"column":23},"end":{"line":159,"column":37}},"67":{"start":{"line":163,"column":32},"end":{"line":169,"column":5}},"68":{"start":{"line":165,"column":6},"end":{"line":165,"column":53}},"69":{"start":{"line":167,"column":6},"end":{"line":167,"column":30}},"70":{"start":{"line":168,"column":6},"end":{"line":168,"column":21}},"71":{"start":{"line":171,"column":4},"end":{"line":206,"column":null}},"72":{"start":{"line":172,"column":6},"end":{"line":172,"column":30}},"73":{"start":{"line":174,"column":37},"end":{"line":174,"column":48}},"74":{"start":{"line":175,"column":6},"end":{"line":175,"column":57}},"75":{"start":{"line":177,"column":6},"end":{"line":180,"column":null}},"76":{"start":{"line":178,"column":8},"end":{"line":178,"column":36}},"77":{"start":{"line":179,"column":8},"end":{"line":179,"column":15}},"78":{"start":{"line":183,"column":6},"end":{"line":205,"column":11}},"79":{"start":{"line":186,"column":10},"end":{"line":192,"column":12}},"80":{"start":{"line":195,"column":10},"end":{"line":201,"column":12}},"81":{"start":{"line":204,"column":10},"end":{"line":204,"column":38}},"82":{"start":{"line":210,"column":4},"end":{"line":215,"column":null}},"83":{"start":{"line":211,"column":6},"end":{"line":214,"column":8}},"84":{"start":{"line":217,"column":4},"end":{"line":217,"column":60}},"85":{"start":{"line":13,"column":0},"end":{"line":13,"column":21}},"86":{"start":{"line":17,"column":17},"end":{"line":17,"column":72}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":39,"column":2},"end":{"line":39,"column":30}},"loc":{"start":{"line":39,"column":58},"end":{"line":44,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":40,"column":47},"end":{"line":40,"column":null}},"loc":{"start":{"line":43,"column":9},"end":{"line":43,"column":54}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":46,"column":9},"end":{"line":46,"column":14}},"loc":{"start":{"line":46,"column":45},"end":{"line":60,"column":3}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":17},"end":{"line":55,"column":20}},"loc":{"start":{"line":55,"column":22},"end":{"line":57,"column":5}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":62,"column":10},"end":{"line":62,"column":14}},"loc":{"start":{"line":62,"column":14},"end":{"line":67,"column":3}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":69,"column":9},"end":{"line":69,"column":23}},"loc":{"start":{"line":69,"column":46},"end":{"line":78,"column":3}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":80,"column":9},"end":{"line":80,"column":14}},"loc":{"start":{"line":80,"column":44},"end":{"line":87,"column":3}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":89,"column":9},"end":{"line":89,"column":14}},"loc":{"start":{"line":89,"column":43},"end":{"line":99,"column":3}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":101,"column":10},"end":{"line":101,"column":15}},"loc":{"start":{"line":101,"column":60},"end":{"line":106,"column":3}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":10},"end":{"line":108,"column":15}},"loc":{"start":{"line":108,"column":61},"end":{"line":116,"column":3}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":118,"column":9},"end":{"line":118,"column":14}},"loc":{"start":{"line":118,"column":43},"end":{"line":145,"column":3}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":147,"column":9},"end":{"line":147,"column":14}},"loc":{"start":{"line":147,"column":44},"end":{"line":160,"column":3}}},"12":{"name":"(anonymous_13)","decl":{"start":{"line":159,"column":17},"end":{"line":159,"column":20}},"loc":{"start":{"line":159,"column":23},"end":{"line":159,"column":37}}},"13":{"name":"(anonymous_14)","decl":{"start":{"line":162,"column":10},"end":{"line":162,"column":15}},"loc":{"start":{"line":162,"column":23},"end":{"line":207,"column":3}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":163,"column":32},"end":{"line":163,"column":33}},"loc":{"start":{"line":163,"column":67},"end":{"line":169,"column":5}}},"15":{"name":"(anonymous_16)","decl":{"start":{"line":185,"column":14},"end":{"line":185,"column":15}},"loc":{"start":{"line":185,"column":25},"end":{"line":193,"column":9}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":194,"column":15},"end":{"line":194,"column":16}},"loc":{"start":{"line":194,"column":25},"end":{"line":202,"column":9}}},"17":{"name":"(anonymous_18)","decl":{"start":{"line":203,"column":17},"end":{"line":203,"column":22}},"loc":{"start":{"line":203,"column":28},"end":{"line":205,"column":9}}},"18":{"name":"(anonymous_19)","decl":{"start":{"line":209,"column":2},"end":{"line":209,"column":8}},"loc":{"start":{"line":209,"column":38},"end":{"line":218,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":39,"column":30},"end":{"line":39,"column":58}},"type":"default-arg","locations":[{"start":{"line":39,"column":57},"end":{"line":39,"column":58}}]},"1":{"loc":{"start":{"line":47,"column":4},"end":{"line":52,"column":null}},"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":52,"column":null}}]},"2":{"loc":{"start":{"line":70,"column":4},"end":{"line":70,"column":49}},"type":"if","locations":[{"start":{"line":70,"column":4},"end":{"line":70,"column":49}}]},"3":{"loc":{"start":{"line":81,"column":4},"end":{"line":81,"column":77}},"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":81,"column":77}}]},"4":{"loc":{"start":{"line":91,"column":4},"end":{"line":92,"column":69}},"type":"if","locations":[{"start":{"line":91,"column":4},"end":{"line":92,"column":69}}]},"5":{"loc":{"start":{"line":95,"column":4},"end":{"line":96,"column":63}},"type":"if","locations":[{"start":{"line":95,"column":4},"end":{"line":96,"column":63}}]},"6":{"loc":{"start":{"line":122,"column":4},"end":{"line":130,"column":null}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":130,"column":null}}]},"7":{"loc":{"start":{"line":135,"column":4},"end":{"line":142,"column":null}},"type":"if","locations":[{"start":{"line":135,"column":4},"end":{"line":142,"column":null}}]},"8":{"loc":{"start":{"line":148,"column":4},"end":{"line":148,"column":54}},"type":"if","locations":[{"start":{"line":148,"column":4},"end":{"line":148,"column":54}}]},"9":{"loc":{"start":{"line":171,"column":4},"end":{"line":206,"column":null}},"type":"if","locations":[{"start":{"line":171,"column":4},"end":{"line":206,"column":null}}]},"10":{"loc":{"start":{"line":171,"column":8},"end":{"line":171,"column":64}},"type":"binary-expr","locations":[{"start":{"line":171,"column":8},"end":{"line":171,"column":33}},{"start":{"line":171,"column":37},"end":{"line":171,"column":64}}]},"11":{"loc":{"start":{"line":177,"column":6},"end":{"line":180,"column":null}},"type":"if","locations":[{"start":{"line":177,"column":6},"end":{"line":180,"column":null}}]},"12":{"loc":{"start":{"line":188,"column":12},"end":{"line":191,"column":26}},"type":"cond-expr","locations":[{"start":{"line":190,"column":16},"end":{"line":190,"column":27}},{"start":{"line":191,"column":16},"end":{"line":191,"column":26}}]},"13":{"loc":{"start":{"line":188,"column":12},"end":{"line":189,"column":59}},"type":"binary-expr","locations":[{"start":{"line":188,"column":12},"end":{"line":188,"column":59}},{"start":{"line":189,"column":14},"end":{"line":189,"column":59}}]},"14":{"loc":{"start":{"line":197,"column":12},"end":{"line":200,"column":26}},"type":"cond-expr","locations":[{"start":{"line":199,"column":16},"end":{"line":199,"column":27}},{"start":{"line":200,"column":16},"end":{"line":200,"column":26}}]},"15":{"loc":{"start":{"line":197,"column":12},"end":{"line":198,"column":59}},"type":"binary-expr","locations":[{"start":{"line":197,"column":12},"end":{"line":197,"column":59}},{"start":{"line":198,"column":14},"end":{"line":198,"column":59}}]},"16":{"loc":{"start":{"line":210,"column":4},"end":{"line":215,"column":null}},"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":215,"column":null}}]}},"s":{"0":2,"1":2,"2":6,"3":6,"4":6,"5":6,"6":6,"7":68,"8":39,"9":37,"10":37,"11":37,"12":37,"13":39,"14":39,"15":39,"16":39,"17":46,"18":46,"19":46,"20":6,"21":0,"22":6,"23":6,"24":6,"25":6,"26":6,"27":10,"28":7,"29":3,"30":3,"31":3,"32":3,"33":6,"34":4,"35":2,"36":1,"37":1,"38":1,"39":1,"40":1,"41":4,"42":4,"43":4,"44":4,"45":11,"46":2,"47":2,"48":2,"49":2,"50":2,"51":9,"52":8,"53":8,"54":8,"55":8,"56":8,"57":1,"58":3,"59":0,"60":3,"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"67":90,"68":46,"69":46,"70":46,"71":90,"72":46,"73":46,"74":46,"75":46,"76":17,"77":17,"78":29,"79":28,"80":1,"81":29,"82":79,"83":6,"84":79,"85":2,"86":2},"f":{"0":6,"1":68,"2":39,"3":39,"4":46,"5":6,"6":10,"7":6,"8":1,"9":4,"10":11,"11":3,"12":3,"13":90,"14":46,"15":28,"16":1,"17":29,"18":79},"b":{"0":[0],"1":[37],"2":[0],"3":[7],"4":[4],"5":[1],"6":[2],"7":[8],"8":[0],"9":[46],"10":[90,67],"11":[17],"12":[6,22],"13":[28,24],"14":[0,1],"15":[1,1],"16":[6]}} -,"D:\\Projects\\priority-task\\lib\\SubscribableQueueItem.ts": {"path":"D:\\Projects\\priority-task\\lib\\SubscribableQueueItem.ts","statementMap":{"0":{"start":{"line":20,"column":21},"end":{"line":20,"column":42}},"1":{"start":{"line":10,"column":10},"end":{"line":13,"column":4}},"2":{"start":{"line":15,"column":10},"end":{"line":18,"column":4}},"3":{"start":{"line":23,"column":4},"end":{"line":25,"column":7}},"4":{"start":{"line":24,"column":6},"end":{"line":24,"column":24}},"5":{"start":{"line":29,"column":4},"end":{"line":31,"column":7}},"6":{"start":{"line":30,"column":6},"end":{"line":30,"column":22}},"7":{"start":{"line":38,"column":20},"end":{"line":46,"column":6}},"8":{"start":{"line":39,"column":6},"end":{"line":41,"column":8}},"9":{"start":{"line":40,"column":8},"end":{"line":40,"column":24}},"10":{"start":{"line":43,"column":6},"end":{"line":45,"column":8}},"11":{"start":{"line":44,"column":8},"end":{"line":44,"column":22}},"12":{"start":{"line":49,"column":4},"end":{"line":49,"column":53}},"13":{"start":{"line":50,"column":4},"end":{"line":50,"column":51}},"14":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"15":{"start":{"line":65,"column":4},"end":{"line":73,"column":null}},"16":{"start":{"line":67,"column":8},"end":{"line":67,"column":59}},"17":{"start":{"line":68,"column":8},"end":{"line":68,"column":14}},"18":{"start":{"line":71,"column":8},"end":{"line":71,"column":58}},"19":{"start":{"line":72,"column":8},"end":{"line":72,"column":14}},"20":{"start":{"line":9,"column":0},"end":{"line":9,"column":21}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":2},"end":{"line":20,"column":21}},"loc":{"start":{"line":20,"column":42},"end":{"line":20,"column":46}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":22,"column":9},"end":{"line":22,"column":24}},"loc":{"start":{"line":22,"column":56},"end":{"line":26,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":23,"column":40},"end":{"line":23,"column":41}},"loc":{"start":{"line":23,"column":64},"end":{"line":25,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":28,"column":9},"end":{"line":28,"column":23}},"loc":{"start":{"line":28,"column":54},"end":{"line":32,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":29,"column":39},"end":{"line":29,"column":40}},"loc":{"start":{"line":29,"column":62},"end":{"line":31,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":34,"column":9},"end":{"line":34,"column":22}},"loc":{"start":{"line":34,"column":54},"end":{"line":53,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":38,"column":32},"end":{"line":38,"column":33}},"loc":{"start":{"line":38,"column":52},"end":{"line":46,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":39,"column":24},"end":{"line":39,"column":29}},"loc":{"start":{"line":39,"column":41},"end":{"line":41,"column":7}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":43,"column":23},"end":{"line":43,"column":24}},"loc":{"start":{"line":43,"column":40},"end":{"line":45,"column":7}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":60,"column":10},"end":{"line":60,"column":19}},"loc":{"start":{"line":63,"column":22},"end":{"line":74,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":34,"column":23},"end":{"line":34,"column":54}},"type":"default-arg","locations":[{"start":{"line":34,"column":44},"end":{"line":34,"column":54}}]},"1":{"loc":{"start":{"line":65,"column":4},"end":{"line":73,"column":null}},"type":"switch","locations":[{"start":{"line":66,"column":6},"end":{"line":68,"column":14}},{"start":{"line":70,"column":6},"end":{"line":72,"column":14}}]}},"s":{"0":37,"1":37,"2":37,"3":28,"4":31,"5":9,"6":9,"7":45,"8":45,"9":31,"10":45,"11":9,"12":45,"13":45,"14":45,"15":90,"16":45,"17":45,"18":45,"19":45,"20":2},"f":{"0":37,"1":28,"2":31,"3":9,"4":9,"5":45,"6":45,"7":31,"8":9,"9":90},"b":{"0":[39],"1":[45,45]}} -,"D:\\Projects\\priority-task\\lib\\index.ts": {"path":"D:\\Projects\\priority-task\\lib\\index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}},"1":{"start":{"line":2,"column":9},"end":{"line":1,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":9},"end":{"line":2,"column":14}},"loc":{"start":{"line":2,"column":9},"end":{"line":1,"column":42}}}},"branchMap":{},"s":{"0":1,"1":46},"f":{"0":45},"b":{}} +{"/workspaces/priority-task/lib/PTask.ts": {"path":"/workspaces/priority-task/lib/PTask.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":64}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":36}},"2":{"start":{"line":4,"column":34},"end":{"line":4,"column":35}},"3":{"start":{"line":40,"column":10},"end":{"line":40,"column":39}},"4":{"start":{"line":60,"column":10},"end":{"line":60,"column":36}},"5":{"start":{"line":62,"column":10},"end":{"line":62,"column":47}},"6":{"start":{"line":64,"column":9},"end":{"line":66,"column":4}},"7":{"start":{"line":65,"column":21},"end":{"line":65,"column":32}},"8":{"start":{"line":69,"column":4},"end":{"line":69,"column":38}},"9":{"start":{"line":70,"column":4},"end":{"line":70,"column":36}},"10":{"start":{"line":71,"column":4},"end":{"line":71,"column":30}},"11":{"start":{"line":72,"column":4},"end":{"line":72,"column":32}},"12":{"start":{"line":73,"column":4},"end":{"line":73,"column":56}},"13":{"start":{"line":73,"column":51},"end":{"line":73,"column":54}},"14":{"start":{"line":74,"column":4},"end":{"line":74,"column":58}},"15":{"start":{"line":74,"column":53},"end":{"line":74,"column":56}},"16":{"start":{"line":75,"column":4},"end":{"line":75,"column":51}},"17":{"start":{"line":76,"column":4},"end":{"line":77,"column":80}},"18":{"start":{"line":77,"column":69},"end":{"line":77,"column":78}},"19":{"start":{"line":78,"column":4},"end":{"line":78,"column":61}},"20":{"start":{"line":81,"column":4},"end":{"line":83,"column":null}},"21":{"start":{"line":82,"column":6},"end":{"line":82,"column":47}},"22":{"start":{"line":85,"column":4},"end":{"line":85,"column":52}},"23":{"start":{"line":89,"column":19},"end":{"line":91,"column":19}},"24":{"start":{"line":92,"column":19},"end":{"line":92,"column":59}},"25":{"start":{"line":93,"column":4},"end":{"line":93,"column":31}},"26":{"start":{"line":94,"column":4},"end":{"line":94,"column":31}},"27":{"start":{"line":95,"column":4},"end":{"line":95,"column":18}},"28":{"start":{"line":99,"column":4},"end":{"line":99,"column":41}},"29":{"start":{"line":99,"column":34},"end":{"line":99,"column":41}},"30":{"start":{"line":101,"column":4},"end":{"line":101,"column":28}},"31":{"start":{"line":102,"column":19},"end":{"line":104,"column":17}},"32":{"start":{"line":105,"column":4},"end":{"line":105,"column":61}},"33":{"start":{"line":106,"column":4},"end":{"line":106,"column":56}},"34":{"start":{"line":110,"column":4},"end":{"line":110,"column":41}},"35":{"start":{"line":110,"column":34},"end":{"line":110,"column":41}},"36":{"start":{"line":112,"column":4},"end":{"line":112,"column":29}},"37":{"start":{"line":113,"column":4},"end":{"line":113,"column":57}},"38":{"start":{"line":114,"column":4},"end":{"line":114,"column":69}},"39":{"start":{"line":120,"column":4},"end":{"line":120,"column":70}},"40":{"start":{"line":120,"column":36},"end":{"line":120,"column":70}},"41":{"start":{"line":122,"column":23},"end":{"line":122,"column":35}},"42":{"start":{"line":123,"column":4},"end":{"line":123,"column":30}},"43":{"start":{"line":124,"column":17},"end":{"line":124,"column":21}},"44":{"start":{"line":125,"column":18},"end":{"line":125,"column":41}},"45":{"start":{"line":127,"column":4},"end":{"line":145,"column":null}},"46":{"start":{"line":128,"column":6},"end":{"line":137,"column":null}},"47":{"start":{"line":129,"column":8},"end":{"line":129,"column":79}},"48":{"start":{"line":131,"column":8},"end":{"line":136,"column":null}},"49":{"start":{"line":132,"column":10},"end":{"line":132,"column":80}},"50":{"start":{"line":134,"column":10},"end":{"line":134,"column":25}},"51":{"start":{"line":135,"column":10},"end":{"line":135,"column":37}},"52":{"start":{"line":139,"column":6},"end":{"line":144,"column":null}},"53":{"start":{"line":140,"column":8},"end":{"line":140,"column":79}},"54":{"start":{"line":142,"column":8},"end":{"line":142,"column":23}},"55":{"start":{"line":143,"column":8},"end":{"line":143,"column":35}},"56":{"start":{"line":147,"column":4},"end":{"line":151,"column":null}},"57":{"start":{"line":148,"column":6},"end":{"line":148,"column":22}},"58":{"start":{"line":150,"column":6},"end":{"line":150,"column":32}},"59":{"start":{"line":152,"column":4},"end":{"line":152,"column":29}},"60":{"start":{"line":156,"column":4},"end":{"line":156,"column":23}},"61":{"start":{"line":157,"column":4},"end":{"line":157,"column":77}},"62":{"start":{"line":161,"column":4},"end":{"line":161,"column":26}},"63":{"start":{"line":165,"column":4},"end":{"line":165,"column":21}},"64":{"start":{"line":169,"column":4},"end":{"line":169,"column":22}},"65":{"start":{"line":173,"column":4},"end":{"line":176,"column":6}},"66":{"start":{"line":174,"column":6},"end":{"line":174,"column":31}},"67":{"start":{"line":175,"column":6},"end":{"line":175,"column":41}},"68":{"start":{"line":180,"column":4},"end":{"line":180,"column":24}},"69":{"start":{"line":184,"column":4},"end":{"line":186,"column":69}},"70":{"start":{"line":190,"column":4},"end":{"line":190,"column":78}},"71":{"start":{"line":194,"column":4},"end":{"line":198,"column":null}},"72":{"start":{"line":195,"column":6},"end":{"line":197,"column":null}},"73":{"start":{"line":200,"column":4},"end":{"line":200,"column":87}},"74":{"start":{"line":35,"column":0},"end":{"line":35,"column":13}},"75":{"start":{"line":36,"column":17},"end":{"line":36,"column":27}},"76":{"start":{"line":38,"column":17},"end":{"line":38,"column":72}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":68,"column":2},"end":{"line":68,"column":14}},"loc":{"start":{"line":68,"column":41},"end":{"line":86,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":65,"column":15},"end":{"line":65,"column":18}},"loc":{"start":{"line":65,"column":21},"end":{"line":65,"column":32}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":73,"column":39},"end":{"line":73,"column":40}},"loc":{"start":{"line":73,"column":51},"end":{"line":73,"column":54}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":74,"column":41},"end":{"line":74,"column":42}},"loc":{"start":{"line":74,"column":53},"end":{"line":74,"column":56}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":75,"column":41},"end":{"line":75,"column":44}},"loc":{"start":{"line":75,"column":46},"end":{"line":75,"column":49}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":77,"column":31},"end":{"line":77,"column":32}},"loc":{"start":{"line":77,"column":69},"end":{"line":77,"column":78}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":88,"column":9},"end":{"line":88,"column":14}},"loc":{"start":{"line":88,"column":18},"end":{"line":96,"column":3}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":98,"column":9},"end":{"line":98,"column":14}},"loc":{"start":{"line":98,"column":20},"end":{"line":107,"column":3}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":109,"column":9},"end":{"line":109,"column":15}},"loc":{"start":{"line":109,"column":15},"end":{"line":115,"column":3}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":117,"column":9},"end":{"line":117,"column":14}},"loc":{"start":{"line":118,"column":52},"end":{"line":153,"column":3}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":155,"column":2},"end":{"line":155,"column":13}},"loc":{"start":{"line":155,"column":31},"end":{"line":158,"column":3}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":160,"column":2},"end":{"line":160,"column":13}},"loc":{"start":{"line":160,"column":21},"end":{"line":162,"column":3}}},"12":{"name":"(anonymous_13)","decl":{"start":{"line":164,"column":2},"end":{"line":164,"column":13}},"loc":{"start":{"line":164,"column":16},"end":{"line":166,"column":3}}},"13":{"name":"(anonymous_14)","decl":{"start":{"line":168,"column":2},"end":{"line":168,"column":13}},"loc":{"start":{"line":168,"column":17},"end":{"line":170,"column":3}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":172,"column":2},"end":{"line":172,"column":13}},"loc":{"start":{"line":172,"column":18},"end":{"line":177,"column":3}}},"15":{"name":"(anonymous_16)","decl":{"start":{"line":173,"column":11},"end":{"line":173,"column":12}},"loc":{"start":{"line":173,"column":44},"end":{"line":176,"column":5}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":179,"column":2},"end":{"line":179,"column":13}},"loc":{"start":{"line":179,"column":19},"end":{"line":181,"column":3}}},"17":{"name":"(anonymous_18)","decl":{"start":{"line":183,"column":10},"end":{"line":183,"column":29}},"loc":{"start":{"line":183,"column":29},"end":{"line":187,"column":3}}},"18":{"name":"(anonymous_19)","decl":{"start":{"line":189,"column":9},"end":{"line":189,"column":15}},"loc":{"start":{"line":189,"column":89},"end":{"line":191,"column":3}}},"19":{"name":"(anonymous_20)","decl":{"start":{"line":193,"column":9},"end":{"line":193,"column":15}},"loc":{"start":{"line":193,"column":47},"end":{"line":201,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":70,"column":17},"end":{"line":70,"column":35}},"type":"binary-expr","locations":[{"start":{"line":70,"column":17},"end":{"line":70,"column":30}},{"start":{"line":70,"column":34},"end":{"line":70,"column":35}}]},"1":{"loc":{"start":{"line":73,"column":19},"end":{"line":73,"column":55}},"type":"binary-expr","locations":[{"start":{"line":73,"column":19},"end":{"line":73,"column":34}},{"start":{"line":73,"column":39},"end":{"line":73,"column":54}}]},"2":{"loc":{"start":{"line":74,"column":20},"end":{"line":74,"column":57}},"type":"binary-expr","locations":[{"start":{"line":74,"column":20},"end":{"line":74,"column":36}},{"start":{"line":74,"column":41},"end":{"line":74,"column":56}}]},"3":{"loc":{"start":{"line":75,"column":20},"end":{"line":75,"column":50}},"type":"binary-expr","locations":[{"start":{"line":75,"column":20},"end":{"line":75,"column":36}},{"start":{"line":75,"column":41},"end":{"line":75,"column":49}}]},"4":{"loc":{"start":{"line":77,"column":6},"end":{"line":77,"column":79}},"type":"binary-expr","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":26}},{"start":{"line":77,"column":31},"end":{"line":77,"column":78}}]},"5":{"loc":{"start":{"line":78,"column":21},"end":{"line":78,"column":60}},"type":"binary-expr","locations":[{"start":{"line":78,"column":21},"end":{"line":78,"column":38}},{"start":{"line":78,"column":42},"end":{"line":78,"column":60}}]},"6":{"loc":{"start":{"line":81,"column":4},"end":{"line":83,"column":null}},"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":83,"column":null}}]},"7":{"loc":{"start":{"line":99,"column":4},"end":{"line":99,"column":41}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":99,"column":41}}]},"8":{"loc":{"start":{"line":110,"column":4},"end":{"line":110,"column":41}},"type":"if","locations":[{"start":{"line":110,"column":4},"end":{"line":110,"column":41}}]},"9":{"loc":{"start":{"line":118,"column":4},"end":{"line":118,"column":52}},"type":"default-arg","locations":[{"start":{"line":118,"column":36},"end":{"line":118,"column":52}}]},"10":{"loc":{"start":{"line":120,"column":4},"end":{"line":120,"column":70}},"type":"if","locations":[{"start":{"line":120,"column":4},"end":{"line":120,"column":70}}]},"11":{"loc":{"start":{"line":127,"column":4},"end":{"line":145,"column":null}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":145,"column":null}},{"start":{"line":138,"column":11},"end":{"line":145,"column":null}}]},"12":{"loc":{"start":{"line":147,"column":4},"end":{"line":151,"column":null}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":151,"column":null}},{"start":{"line":149,"column":11},"end":{"line":151,"column":null}}]},"13":{"loc":{"start":{"line":189,"column":51},"end":{"line":189,"column":89}},"type":"default-arg","locations":[{"start":{"line":189,"column":71},"end":{"line":189,"column":89}}]},"14":{"loc":{"start":{"line":194,"column":4},"end":{"line":198,"column":null}},"type":"if","locations":[{"start":{"line":194,"column":4},"end":{"line":198,"column":null}}]},"15":{"loc":{"start":{"line":195,"column":13},"end":{"line":197,"column":12}},"type":"cond-expr","locations":[{"start":{"line":196,"column":10},"end":{"line":196,"column":55}},{"start":{"line":197,"column":10},"end":{"line":197,"column":12}}]},"16":{"loc":{"start":{"line":200,"column":11},"end":{"line":200,"column":86}},"type":"cond-expr","locations":[{"start":{"line":200,"column":45},"end":{"line":200,"column":81}},{"start":{"line":200,"column":84},"end":{"line":200,"column":86}}]}},"s":{"0":1,"1":1,"2":1,"3":43,"4":43,"5":43,"6":43,"7":104,"8":43,"9":43,"10":43,"11":43,"12":43,"13":6,"14":43,"15":3,"16":43,"17":43,"18":35,"19":43,"20":43,"21":5,"22":43,"23":42,"24":27,"25":27,"26":27,"27":27,"28":13,"29":2,"30":11,"31":11,"32":10,"33":10,"34":3,"35":0,"36":3,"37":3,"38":3,"39":10,"40":0,"41":10,"42":10,"43":10,"44":10,"45":10,"46":8,"47":8,"48":6,"49":6,"50":1,"51":1,"52":2,"53":2,"54":1,"55":1,"56":10,"57":8,"58":2,"59":10,"60":6,"61":6,"62":142,"63":388,"64":45,"65":32,"66":32,"67":32,"68":143,"69":27,"70":1,"71":6,"72":0,"73":6,"74":1,"75":1,"76":1},"f":{"0":43,"1":104,"2":6,"3":3,"4":7,"5":35,"6":42,"7":13,"8":3,"9":10,"10":6,"11":142,"12":388,"13":45,"14":32,"15":32,"16":143,"17":27,"18":1,"19":6},"b":{"0":[43,43],"1":[43,39],"2":[43,43],"3":[43,42],"4":[43,42],"5":[43,36],"6":[5],"7":[2],"8":[0],"9":[2],"10":[0],"11":[8,2],"12":[8,2],"13":[0],"14":[0],"15":[0,0],"16":[6,0]}} +,"/workspaces/priority-task/lib/ProcessingPriorityQueue.ts": {"path":"/workspaces/priority-task/lib/ProcessingPriorityQueue.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":60}},"2":{"start":{"line":41,"column":30},"end":{"line":41,"column":57}},"3":{"start":{"line":22,"column":10},"end":{"line":22,"column":65}},"4":{"start":{"line":27,"column":10},"end":{"line":27,"column":70}},"5":{"start":{"line":32,"column":10},"end":{"line":32,"column":85}},"6":{"start":{"line":39,"column":10},"end":{"line":39,"column":38}},"7":{"start":{"line":42,"column":4},"end":{"line":45,"column":56}},"8":{"start":{"line":45,"column":9},"end":{"line":45,"column":54}},"9":{"start":{"line":49,"column":4},"end":{"line":49,"column":45}},"10":{"start":{"line":53,"column":4},"end":{"line":58,"column":null}},"11":{"start":{"line":54,"column":31},"end":{"line":54,"column":63}},"12":{"start":{"line":55,"column":20},"end":{"line":55,"column":60}},"13":{"start":{"line":56,"column":6},"end":{"line":56,"column":46}},"14":{"start":{"line":57,"column":6},"end":{"line":57,"column":36}},"15":{"start":{"line":60,"column":20},"end":{"line":60,"column":74}},"16":{"start":{"line":61,"column":4},"end":{"line":63,"column":7}},"17":{"start":{"line":62,"column":6},"end":{"line":62,"column":21}},"18":{"start":{"line":65,"column":4},"end":{"line":65,"column":19}},"19":{"start":{"line":69,"column":17},"end":{"line":69,"column":86}},"20":{"start":{"line":70,"column":4},"end":{"line":70,"column":50}},"21":{"start":{"line":72,"column":4},"end":{"line":72,"column":16}},"22":{"start":{"line":76,"column":4},"end":{"line":76,"column":49}},"23":{"start":{"line":76,"column":42},"end":{"line":76,"column":49}},"24":{"start":{"line":78,"column":18},"end":{"line":78,"column":50}},"25":{"start":{"line":79,"column":4},"end":{"line":79,"column":24}},"26":{"start":{"line":81,"column":21},"end":{"line":81,"column":56}},"27":{"start":{"line":82,"column":4},"end":{"line":82,"column":47}},"28":{"start":{"line":83,"column":4},"end":{"line":83,"column":37}},"29":{"start":{"line":87,"column":4},"end":{"line":87,"column":77}},"30":{"start":{"line":87,"column":43},"end":{"line":87,"column":77}},"31":{"start":{"line":89,"column":18},"end":{"line":89,"column":50}},"32":{"start":{"line":90,"column":4},"end":{"line":90,"column":24}},"33":{"start":{"line":91,"column":4},"end":{"line":91,"column":71}},"34":{"start":{"line":92,"column":4},"end":{"line":92,"column":16}},"35":{"start":{"line":97,"column":4},"end":{"line":98,"column":69}},"36":{"start":{"line":98,"column":6},"end":{"line":98,"column":69}},"37":{"start":{"line":101,"column":4},"end":{"line":102,"column":63}},"38":{"start":{"line":102,"column":6},"end":{"line":102,"column":63}},"39":{"start":{"line":104,"column":4},"end":{"line":104,"column":63}},"40":{"start":{"line":108,"column":4},"end":{"line":108,"column":48}},"41":{"start":{"line":109,"column":4},"end":{"line":109,"column":75}},"42":{"start":{"line":111,"column":4},"end":{"line":111,"column":16}},"43":{"start":{"line":115,"column":4},"end":{"line":115,"column":53}},"44":{"start":{"line":116,"column":4},"end":{"line":121,"column":null}},"45":{"start":{"line":117,"column":6},"end":{"line":117,"column":49}},"46":{"start":{"line":120,"column":6},"end":{"line":120,"column":78}},"47":{"start":{"line":128,"column":4},"end":{"line":136,"column":null}},"48":{"start":{"line":130,"column":35},"end":{"line":130,"column":71}},"49":{"start":{"line":131,"column":6},"end":{"line":131,"column":80}},"50":{"start":{"line":133,"column":21},"end":{"line":133,"column":74}},"51":{"start":{"line":134,"column":6},"end":{"line":134,"column":21}},"52":{"start":{"line":135,"column":6},"end":{"line":135,"column":20}},"53":{"start":{"line":141,"column":4},"end":{"line":148,"column":null}},"54":{"start":{"line":142,"column":20},"end":{"line":142,"column":52}},"55":{"start":{"line":143,"column":6},"end":{"line":143,"column":26}},"56":{"start":{"line":144,"column":6},"end":{"line":144,"column":78}},"57":{"start":{"line":145,"column":6},"end":{"line":145,"column":42}},"58":{"start":{"line":147,"column":6},"end":{"line":147,"column":18}},"59":{"start":{"line":150,"column":4},"end":{"line":150,"column":63}},"60":{"start":{"line":154,"column":4},"end":{"line":154,"column":54}},"61":{"start":{"line":154,"column":42},"end":{"line":154,"column":54}},"62":{"start":{"line":156,"column":23},"end":{"line":156,"column":54}},"63":{"start":{"line":157,"column":4},"end":{"line":157,"column":49}},"64":{"start":{"line":160,"column":18},"end":{"line":160,"column":52}},"65":{"start":{"line":161,"column":4},"end":{"line":161,"column":54}},"66":{"start":{"line":162,"column":4},"end":{"line":162,"column":34}},"67":{"start":{"line":165,"column":4},"end":{"line":165,"column":39}},"68":{"start":{"line":165,"column":23},"end":{"line":165,"column":37}},"69":{"start":{"line":169,"column":32},"end":{"line":175,"column":5}},"70":{"start":{"line":171,"column":6},"end":{"line":171,"column":53}},"71":{"start":{"line":173,"column":6},"end":{"line":173,"column":37}},"72":{"start":{"line":174,"column":6},"end":{"line":174,"column":21}},"73":{"start":{"line":177,"column":4},"end":{"line":212,"column":null}},"74":{"start":{"line":178,"column":6},"end":{"line":178,"column":37}},"75":{"start":{"line":180,"column":37},"end":{"line":180,"column":48}},"76":{"start":{"line":181,"column":6},"end":{"line":181,"column":57}},"77":{"start":{"line":183,"column":6},"end":{"line":186,"column":null}},"78":{"start":{"line":184,"column":8},"end":{"line":184,"column":36}},"79":{"start":{"line":185,"column":8},"end":{"line":185,"column":15}},"80":{"start":{"line":189,"column":6},"end":{"line":211,"column":11}},"81":{"start":{"line":192,"column":10},"end":{"line":198,"column":12}},"82":{"start":{"line":201,"column":10},"end":{"line":207,"column":12}},"83":{"start":{"line":210,"column":10},"end":{"line":210,"column":38}},"84":{"start":{"line":216,"column":4},"end":{"line":221,"column":null}},"85":{"start":{"line":217,"column":6},"end":{"line":220,"column":8}},"86":{"start":{"line":223,"column":4},"end":{"line":223,"column":60}},"87":{"start":{"line":13,"column":0},"end":{"line":13,"column":21}},"88":{"start":{"line":17,"column":17},"end":{"line":17,"column":72}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":41,"column":2},"end":{"line":41,"column":30}},"loc":{"start":{"line":41,"column":58},"end":{"line":46,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":42,"column":47},"end":{"line":42,"column":null}},"loc":{"start":{"line":45,"column":9},"end":{"line":45,"column":54}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":48,"column":9},"end":{"line":48,"column":28}},"loc":{"start":{"line":48,"column":53},"end":{"line":50,"column":3}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":52,"column":9},"end":{"line":52,"column":14}},"loc":{"start":{"line":52,"column":45},"end":{"line":66,"column":3}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":61,"column":17},"end":{"line":61,"column":20}},"loc":{"start":{"line":61,"column":22},"end":{"line":63,"column":5}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":68,"column":10},"end":{"line":68,"column":14}},"loc":{"start":{"line":68,"column":14},"end":{"line":73,"column":3}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":75,"column":9},"end":{"line":75,"column":23}},"loc":{"start":{"line":75,"column":46},"end":{"line":84,"column":3}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":86,"column":9},"end":{"line":86,"column":14}},"loc":{"start":{"line":86,"column":44},"end":{"line":93,"column":3}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":95,"column":9},"end":{"line":95,"column":14}},"loc":{"start":{"line":95,"column":43},"end":{"line":105,"column":3}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":107,"column":10},"end":{"line":107,"column":15}},"loc":{"start":{"line":107,"column":60},"end":{"line":112,"column":3}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":114,"column":10},"end":{"line":114,"column":15}},"loc":{"start":{"line":114,"column":61},"end":{"line":122,"column":3}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":124,"column":9},"end":{"line":124,"column":14}},"loc":{"start":{"line":124,"column":43},"end":{"line":151,"column":3}}},"12":{"name":"(anonymous_13)","decl":{"start":{"line":153,"column":9},"end":{"line":153,"column":14}},"loc":{"start":{"line":153,"column":44},"end":{"line":166,"column":3}}},"13":{"name":"(anonymous_14)","decl":{"start":{"line":165,"column":17},"end":{"line":165,"column":20}},"loc":{"start":{"line":165,"column":23},"end":{"line":165,"column":37}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":168,"column":10},"end":{"line":168,"column":15}},"loc":{"start":{"line":168,"column":23},"end":{"line":213,"column":3}}},"15":{"name":"(anonymous_16)","decl":{"start":{"line":169,"column":32},"end":{"line":169,"column":33}},"loc":{"start":{"line":169,"column":67},"end":{"line":175,"column":5}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":191,"column":14},"end":{"line":191,"column":15}},"loc":{"start":{"line":191,"column":25},"end":{"line":199,"column":9}}},"17":{"name":"(anonymous_18)","decl":{"start":{"line":200,"column":15},"end":{"line":200,"column":16}},"loc":{"start":{"line":200,"column":25},"end":{"line":208,"column":9}}},"18":{"name":"(anonymous_19)","decl":{"start":{"line":209,"column":17},"end":{"line":209,"column":22}},"loc":{"start":{"line":209,"column":28},"end":{"line":211,"column":9}}},"19":{"name":"(anonymous_20)","decl":{"start":{"line":215,"column":2},"end":{"line":215,"column":8}},"loc":{"start":{"line":215,"column":38},"end":{"line":224,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":41,"column":30},"end":{"line":41,"column":58}},"type":"default-arg","locations":[{"start":{"line":41,"column":57},"end":{"line":41,"column":58}}]},"1":{"loc":{"start":{"line":53,"column":4},"end":{"line":58,"column":null}},"type":"if","locations":[{"start":{"line":53,"column":4},"end":{"line":58,"column":null}}]},"2":{"loc":{"start":{"line":76,"column":4},"end":{"line":76,"column":49}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":76,"column":49}}]},"3":{"loc":{"start":{"line":87,"column":4},"end":{"line":87,"column":77}},"type":"if","locations":[{"start":{"line":87,"column":4},"end":{"line":87,"column":77}}]},"4":{"loc":{"start":{"line":97,"column":4},"end":{"line":98,"column":69}},"type":"if","locations":[{"start":{"line":97,"column":4},"end":{"line":98,"column":69}}]},"5":{"loc":{"start":{"line":101,"column":4},"end":{"line":102,"column":63}},"type":"if","locations":[{"start":{"line":101,"column":4},"end":{"line":102,"column":63}}]},"6":{"loc":{"start":{"line":128,"column":4},"end":{"line":136,"column":null}},"type":"if","locations":[{"start":{"line":128,"column":4},"end":{"line":136,"column":null}}]},"7":{"loc":{"start":{"line":141,"column":4},"end":{"line":148,"column":null}},"type":"if","locations":[{"start":{"line":141,"column":4},"end":{"line":148,"column":null}}]},"8":{"loc":{"start":{"line":154,"column":4},"end":{"line":154,"column":54}},"type":"if","locations":[{"start":{"line":154,"column":4},"end":{"line":154,"column":54}}]},"9":{"loc":{"start":{"line":177,"column":4},"end":{"line":212,"column":null}},"type":"if","locations":[{"start":{"line":177,"column":4},"end":{"line":212,"column":null}}]},"10":{"loc":{"start":{"line":177,"column":8},"end":{"line":177,"column":91}},"type":"binary-expr","locations":[{"start":{"line":177,"column":8},"end":{"line":177,"column":60}},{"start":{"line":177,"column":64},"end":{"line":177,"column":91}}]},"11":{"loc":{"start":{"line":183,"column":6},"end":{"line":186,"column":null}},"type":"if","locations":[{"start":{"line":183,"column":6},"end":{"line":186,"column":null}}]},"12":{"loc":{"start":{"line":194,"column":12},"end":{"line":197,"column":26}},"type":"cond-expr","locations":[{"start":{"line":196,"column":16},"end":{"line":196,"column":27}},{"start":{"line":197,"column":16},"end":{"line":197,"column":26}}]},"13":{"loc":{"start":{"line":194,"column":12},"end":{"line":195,"column":59}},"type":"binary-expr","locations":[{"start":{"line":194,"column":12},"end":{"line":194,"column":59}},{"start":{"line":195,"column":14},"end":{"line":195,"column":59}}]},"14":{"loc":{"start":{"line":203,"column":12},"end":{"line":206,"column":26}},"type":"cond-expr","locations":[{"start":{"line":205,"column":16},"end":{"line":205,"column":27}},{"start":{"line":206,"column":16},"end":{"line":206,"column":26}}]},"15":{"loc":{"start":{"line":203,"column":12},"end":{"line":204,"column":59}},"type":"binary-expr","locations":[{"start":{"line":203,"column":12},"end":{"line":203,"column":59}},{"start":{"line":204,"column":14},"end":{"line":204,"column":59}}]},"16":{"loc":{"start":{"line":216,"column":4},"end":{"line":221,"column":null}},"type":"if","locations":[{"start":{"line":216,"column":4},"end":{"line":221,"column":null}}]}},"s":{"0":2,"1":2,"2":7,"3":7,"4":7,"5":7,"6":7,"7":7,"8":71,"9":1,"10":42,"11":40,"12":40,"13":40,"14":40,"15":42,"16":42,"17":42,"18":42,"19":49,"20":49,"21":49,"22":6,"23":0,"24":6,"25":6,"26":6,"27":6,"28":6,"29":10,"30":7,"31":3,"32":3,"33":3,"34":3,"35":6,"36":4,"37":2,"38":1,"39":1,"40":1,"41":1,"42":1,"43":4,"44":4,"45":4,"46":4,"47":11,"48":2,"49":2,"50":2,"51":2,"52":2,"53":9,"54":8,"55":8,"56":8,"57":8,"58":8,"59":1,"60":3,"61":0,"62":3,"63":3,"64":3,"65":3,"66":3,"67":3,"68":3,"69":96,"70":49,"71":49,"72":49,"73":96,"74":49,"75":49,"76":49,"77":49,"78":17,"79":17,"80":32,"81":31,"82":1,"83":32,"84":83,"85":7,"86":83,"87":2,"88":2},"f":{"0":7,"1":71,"2":1,"3":42,"4":42,"5":49,"6":6,"7":10,"8":6,"9":1,"10":4,"11":11,"12":3,"13":3,"14":96,"15":49,"16":31,"17":1,"18":32,"19":83},"b":{"0":[7],"1":[40],"2":[0],"3":[7],"4":[4],"5":[1],"6":[2],"7":[8],"8":[0],"9":[49],"10":[96,72],"11":[17],"12":[6,25],"13":[31,27],"14":[0,1],"15":[1,1],"16":[7]}} +,"/workspaces/priority-task/lib/SubscribableQueueItem.ts": {"path":"/workspaces/priority-task/lib/SubscribableQueueItem.ts","statementMap":{"0":{"start":{"line":20,"column":21},"end":{"line":20,"column":42}},"1":{"start":{"line":10,"column":10},"end":{"line":13,"column":4}},"2":{"start":{"line":15,"column":10},"end":{"line":18,"column":4}},"3":{"start":{"line":23,"column":4},"end":{"line":25,"column":7}},"4":{"start":{"line":24,"column":6},"end":{"line":24,"column":24}},"5":{"start":{"line":29,"column":4},"end":{"line":31,"column":7}},"6":{"start":{"line":30,"column":6},"end":{"line":30,"column":22}},"7":{"start":{"line":38,"column":20},"end":{"line":46,"column":6}},"8":{"start":{"line":39,"column":6},"end":{"line":41,"column":8}},"9":{"start":{"line":40,"column":8},"end":{"line":40,"column":24}},"10":{"start":{"line":43,"column":6},"end":{"line":45,"column":8}},"11":{"start":{"line":44,"column":8},"end":{"line":44,"column":22}},"12":{"start":{"line":49,"column":4},"end":{"line":49,"column":53}},"13":{"start":{"line":50,"column":4},"end":{"line":50,"column":51}},"14":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"15":{"start":{"line":65,"column":4},"end":{"line":73,"column":null}},"16":{"start":{"line":67,"column":8},"end":{"line":67,"column":59}},"17":{"start":{"line":68,"column":8},"end":{"line":68,"column":14}},"18":{"start":{"line":71,"column":8},"end":{"line":71,"column":58}},"19":{"start":{"line":72,"column":8},"end":{"line":72,"column":14}},"20":{"start":{"line":9,"column":0},"end":{"line":9,"column":21}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":2},"end":{"line":20,"column":21}},"loc":{"start":{"line":20,"column":42},"end":{"line":20,"column":46}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":22,"column":9},"end":{"line":22,"column":24}},"loc":{"start":{"line":22,"column":56},"end":{"line":26,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":23,"column":40},"end":{"line":23,"column":41}},"loc":{"start":{"line":23,"column":64},"end":{"line":25,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":28,"column":9},"end":{"line":28,"column":23}},"loc":{"start":{"line":28,"column":54},"end":{"line":32,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":29,"column":39},"end":{"line":29,"column":40}},"loc":{"start":{"line":29,"column":62},"end":{"line":31,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":34,"column":9},"end":{"line":34,"column":22}},"loc":{"start":{"line":34,"column":54},"end":{"line":53,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":38,"column":32},"end":{"line":38,"column":33}},"loc":{"start":{"line":38,"column":52},"end":{"line":46,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":39,"column":24},"end":{"line":39,"column":29}},"loc":{"start":{"line":39,"column":41},"end":{"line":41,"column":7}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":43,"column":23},"end":{"line":43,"column":24}},"loc":{"start":{"line":43,"column":40},"end":{"line":45,"column":7}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":60,"column":10},"end":{"line":60,"column":19}},"loc":{"start":{"line":63,"column":22},"end":{"line":74,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":34,"column":23},"end":{"line":34,"column":54}},"type":"default-arg","locations":[{"start":{"line":34,"column":44},"end":{"line":34,"column":54}}]},"1":{"loc":{"start":{"line":65,"column":4},"end":{"line":73,"column":null}},"type":"switch","locations":[{"start":{"line":66,"column":6},"end":{"line":68,"column":14}},{"start":{"line":70,"column":6},"end":{"line":72,"column":14}}]}},"s":{"0":40,"1":40,"2":40,"3":31,"4":34,"5":9,"6":9,"7":48,"8":48,"9":34,"10":48,"11":9,"12":48,"13":48,"14":48,"15":96,"16":48,"17":48,"18":48,"19":48,"20":2},"f":{"0":40,"1":31,"2":34,"3":9,"4":9,"5":48,"6":48,"7":34,"8":9,"9":96},"b":{"0":[42],"1":[48,48]}} +,"/workspaces/priority-task/lib/index.ts": {"path":"/workspaces/priority-task/lib/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}},"1":{"start":{"line":2,"column":9},"end":{"line":1,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":9},"end":{"line":2,"column":14}},"loc":{"start":{"line":2,"column":9},"end":{"line":1,"column":42}}}},"branchMap":{},"s":{"0":1,"1":52},"f":{"0":51},"b":{}} } diff --git a/coverage/lcov-report/PTask.ts.html b/coverage/lcov-report/PTask.ts.html index f1c1f3e..be79fdc 100644 --- a/coverage/lcov-report/PTask.ts.html +++ b/coverage/lcov-report/PTask.ts.html @@ -23,30 +23,30 @@

All files PTask.ts

- 96% + 96.1% Statements - 72/75 + 74/77
- 73.33% + 74.07% Branches - 22/30 + 20/27
100% Functions - 19/19 + 20/20
- 100% + 98.61% Lines - 69/69 + 71/72
@@ -255,9 +255,20 @@

All files PTask.ts

190 191 192 -1931x +193 +194 +195 +196 +197 +198 +199 +200 +201 +202 +2031x   1x +1x       @@ -293,7 +304,7 @@

All files PTask.ts

  1x   -40x +43x       @@ -313,42 +324,42 @@

All files PTask.ts

      -40x +43x   -40x +43x   -40x -96x +43x +104x       -40x -40x -40x -40x -40x -40x -40x -40x -32x -40x +43x +43x +43x +43x +43x +43x +43x +43x +35x +43x     -40x -4x +43x +5x     -40x +43x       -39x +42x     -24x -24x -24x -24x +27x +27x +27x +27x       @@ -414,42 +425,52 @@

All files PTask.ts

      -136x +142x       -370x +388x       -42x +45x +  +  +  +32x +32x +32x       -29x -29x -29x   +143x       -129x +27x       -24x +  +  +1x       +6x +  +      -4x -4x +  +6x      
import ProcessingPriorityQueue from "./ProcessingPriorityQueue";
  
 const DEFAULT_QUEUE_NAME = "default";
+const DEFAULT_CONCURRENCY_LIMIT = 1;
  
 interface PTaskOptions<T, R> {
   priority: number;
@@ -633,10 +654,19 @@ 

All files PTask.ts

.get(this.queueName) .splice(PTask.pTaskLists.get(this.queueName).indexOf(this), 1); } +  + public static setConcurrencyLimit(limit: number, queueName: string = DEFAULT_QUEUE_NAME): void { + ProcessingPriorityQueue.getInstance(queueName).setConcurrencyLimit(limit); + }   public static getAllPTasks(queueName?: string): Array<PTask<any, any>> { - Iif (!queueName) return [...PTask.pTaskLists.get(DEFAULT_QUEUE_NAME)] ?? []; - return [...PTask.pTaskLists.get(queueName)] ?? []; + Iif (!queueName) { + return PTask.pTaskLists.get(DEFAULT_QUEUE_NAME) + ? [...PTask.pTaskLists.get(DEFAULT_QUEUE_NAME)] + : [] + } +  + return PTask.pTaskLists.get(queueName) ? [...PTask.pTaskLists.get(queueName)] : []; } }  
@@ -646,7 +676,7 @@

All files PTask.ts