timely icon indicating copy to clipboard operation
timely copied to clipboard

Race condition?

Open parkan opened this issue 10 years ago • 0 comments

If I invoke the same decorated asynchronous function multiple times, will I see the timing values clobbered?

i.e.

fooT = timely.promise(foo);
fooT("foo").then(r => console.log(fooT.time));
fooT("bar").then(r => console.log(fooT.time)) // which time does this log?;

parkan avatar Nov 23 '15 18:11 parkan