diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-22 14:24:08 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-22 14:24:08 +0100 |
commit | 1d87fa9db8b0ed0dcea4498ba430ba0cdb0edb23 (patch) | |
tree | 5e49083647e525484193b19748f04361490a7343 /scripts/toy.groovy | |
parent | Fix getDay (diff) | |
download | toy-1d87fa9db8b0ed0dcea4498ba430ba0cdb0edb23.zip |
Hack around wait and metaClass
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r-- | scripts/toy.groovy | 4 |
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() { |