From: MenTaLguY Date: 2006-02-23T09:04:22+09:00 Subject: Re: [ANN] lazy.rb 0.9.5 -- transparent futures! --=-3rXHrGXm/sz6OF7kXKIz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2006-02-22 at 14:14 -0800, Shashank Date wrote: > Problem: All the promises I make, cannot have any arguments ! ! > So something like this is what I have in mind: > =20 > x =3D promise("CUSTOMERS") { |table_name| > long_running_query(table_name)} =20 Hmm. Would this work? table_name =3D "CUSTOMERS" x =3D promise { long_running_query(table_name) } -mental --=-3rXHrGXm/sz6OF7kXKIz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBD/PwwSuZBmZzm14ERAgedAJ9S/ZoGeYCu/DAQKnCdWfpng47NCgCfek9C APT0dQIWBqt0waWKVS9KQko= =TLp9 -----END PGP SIGNATURE----- --=-3rXHrGXm/sz6OF7kXKIz--