summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index bd18e40..d35ced3 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -1603,6 +1603,10 @@ return new Object() {
final removeRequestable = { String name ->
requestables.remove(name);
};
+ // This exists because calling .wait(t) in a metaClass method
+ // calls it on the metaClass, not on the original object
+ void pause(int t) { wait(t); }
+
String main()
{