Skip to content

Commit

Permalink
Version 0.03
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Nov 15, 2016
1 parent c212424 commit c42463f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
6 changes: 4 additions & 2 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Revision history for Data::Fetch

0.03
0.03 Tue Nov 15 10:17:45 EST 2016
Fix values call in DESTROY
Correctly pass arg to thread
Use Coro instead of threads (this is temporary since Coro only works on <= 5.20 - need to fix threads usage)
Use Coro instead of threads
this is temporary since Coro only works on <= 5.20 -
need to fix threads usage

0.02 Mon Nov 14 22:16:47 EST 2016
Specify minimum version of Perl for good thread support
Expand Down
3 changes: 2 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ WriteMakefile(
},
},
},
MIN_PERL_VERSION => '5.12.0' # Get decent thread support
# MIN_PERL_VERSION => '5.12.0' # Get decent thread support
MIN_PERL_VERSION => '5.10.0' # Coro support
);
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Data-Fetch Version 0.02
Data-Fetch Version 0.03

INSTALLATION

Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

# Data::Fetch

give advance warning that you'll be needing a value
Give advance warning that you'll be needing a value

# VERSION

Version 0.01
Version 0.03

# SYNOPSIS

Expand All @@ -31,11 +31,15 @@ Creates a Data::Fetch object. Takes no argument.

## prime

Say what is is you'll be needing later. Takes two mandatory parameters:
Say what is is you'll be needing later.
Takes two mandatory parameters:

object - the object you'll be sending the message to
message - the message you'll be sending

Takes one mandatory parameter:
arg - passes this argument to the message

## get

Retrieve get a value you've primed. Takes two mandatory parameters:
Expand All @@ -49,7 +53,7 @@ Nigel Horne, `<njh at bandsman.co.uk>`

# BUGS

Can't give arguments to the message.
Can't pass more than one argument to the message

Changing a value between prime and get will not necessarily get you the data you want. That's the way it works
and isn't going to change.
Expand Down
5 changes: 3 additions & 2 deletions lib/Data/Fetch.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package Data::Fetch;

# use 5.12.0; # Threads before that are apparently not good
use 5.10.0; # Earliest version that Coro works with
use strict;
use warnings;
use Coro;
Expand All @@ -12,11 +13,11 @@ Data::Fetch - give advance warning that you'll be needing a value
=head1 VERSION
Version 0.02
Version 0.03
=cut

our $VERSION = '0.02';
our $VERSION = '0.03';

=head1 SYNOPSIS
Expand Down

0 comments on commit c42463f

Please sign in to comment.