[ 
https://issues.apache.org/jira/browse/WICKET-2285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Locke resolved WICKET-2285.
------------------------------------

    Resolution: Fixed

This is in trunk now.

> Add Duration.wait(Object)
> -------------------------
>
>                 Key: WICKET-2285
>                 URL: https://issues.apache.org/jira/browse/WICKET-2285
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>            Reporter: Jonathan Locke
>            Assignee: Jonathan Locke
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> This is handy so you don't have to do object.wait(duration.getMilliseconds()) 
> and have an ugly catch block in your code as well.
>       /**
>        * Wait for this duration on the given monitor
>        * 
>        * @param object
>        *            The monitor to wait on
>        */
>       private void wait(Object object)
>       {
>               try
>               {
>                       object.wait(getMilliseconds());
>               }
>               catch (InterruptedException e)
>               {
>                       throw new RuntimeException(e);
>               }
>       }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to