Hi all,
  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)

Any ideas?

Thanks!


------------------------------------------------------------------------------
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