Fetching the most recent entry from the performance array
gokatz opened this issue · 2 comments
gokatz commented
if the user has made more than one measurement for the given event. Can we pop and return the last entered performance entry?
Though it is not an issue, I think, returning the last entry will be flexible. Thus, opening this issue.
ebidel commented
Good call. Or maybe you should always get an array?
…On Thu, Mar 23, 2017, 1:15 PM Gokul Kathirvel ***@***.***> wrote:
if the user has made more than one measurement for the given event. Can we
pop and return the last entered performance entry?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOigFcW4Of5qQ0xXC4iK_TUiokEk_Xqks5rotLmgaJpZM4MnTfA>
.
gokatz commented
yeah... We should, I think. Users will be able to get the duration
array at any time without having to fetch the duration property every time while measuring a metric. How about supporting both getDurationArray
and getRecentDuration
??