File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/@aws-cdk/tmp-toolkit-helpers/src/api/io/private Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,6 @@ type ForceEmpty<T> = T extends EmptyObject ? EmptyObject : T
4545 */
4646type Optional < T , K extends keyof T > = Pick < Partial < T > , K > & Omit < T , K > ;
4747
48- // /**
49- // * A minimal interface that provides a single function to end the span
50- // */
51- // interface CanEndSpan<E extends SpanEnd> {
52- // end(payload: VoidWhenEmpty<Optional<E, keyof SpanEnd>>): Promise<Duration>;
53- // end(message: string, payload: ForceEmpty<Optional<E, keyof SpanEnd>>): Promise<Duration>;
54- // }
55-
5648/**
5749 * Ending the span returns the observed duration
5850 */
@@ -109,8 +101,8 @@ export class SpanMaker<S extends object, E extends SpanEnd> {
109101 }
110102
111103 /**
112- * Starts the span and notifies the IoHost.
113- * @returns an object that can end the span
104+ * Starts the span and initially notifies the IoHost
105+ * @returns a message span
114106 */
115107 public async begin ( payload : VoidWhenEmpty < S > ) : Promise < IMessageSpan < E > > ;
116108 public async begin ( message : string , payload : S ) : Promise < IMessageSpan < E > > ;
You can’t perform that action at this time.
0 commit comments