This queue is for tickets about the future CPAN distribution.

Report information
The Basics
Id:
134620
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
eyad [...] deriv.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: rtime is not set for immediate futures
To: bug-future@rt.cpan.org
From: "Eyad Arnabeh" <eyad@deriv.com>
Date: Fri, 5 Mar 2021 10:18:11 +0800
I'm not sure that I understand the code well but apparently, immediate futures are not marked as ready by `_mark_ready` 

so code like: `perl -e'use strict; use warnings; use Future; $Future::TIMES = 1; print Future->done->elapsed'` will cause `Use of uninitialized value in print at -e line 1.` I found adding `$self->{rtime} = [ gettimeofday ] if $TIMES` in L632 and L695 will help not entirely sure if it's the correct fix.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.