Chris Bunch <c...@cs.ucsb.edu> wrote on 02/01/2011 02:24:27 AM:

>   I'm trying to make use of System's sleep method but for some reason
> I'm unable to. My code is the following:
>
> System.sleep(10l);
>
> but unfortunately it produces this error message:
>
> /mirrornfs/Ring.x10:28: No valid method call found for call in given
> type.
>          Call: sleep(x10.lang.Long{self==10L})
>          Type: x10.lang.System
>
> I've tried making a Long via Long.parse("10") as well, but to no avail.
> I think the solution is fairly simple, but I just can't grasp what it is
> from this error message. From the docs, it looks like I have the right
> method name, so I'm not sure what the problem is. The docs link to the
> method here:
>
> http://dist.codehaus.org/x10/xdoc/2.1.1/x10/lang/System.html#sleep
> (x10.lang.Long)
>


Hi,

        In 2.1.0, the sleep method was on the Activity class.  Activity.sleep
(101) should work.  The online documentation for 2.1.0 is still available
here: http://dist.codehaus.org/x10/xdoc/2.1.0/

        In 2.1.1, the Activity class became package level (not accessible
outside of x10.lang) and the sleep method was moved to System.

--dave

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to