UNPKG
phasic
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
Run functions in phases. Useful for load and performance testing
github.com/stepci
stepci/phasic
phasic
/
dist
/
index.d.ts
9 lines
(8 loc)
•
255 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
declare
type
Phase
= {
duration
:
number
;
arrivalRate
:
number
; };
export
declare
type
PhaseFunction
= { ():
Promise
<
any
>; };
export
declare
function
runPhases<T>(
phases
:
Phase
[],
func
:
PhaseFunction
):
Promise
<
PromiseSettledResult
<T>[]>;