Passing arguments to scheduled functions not supported?

I tried passing arguments to scheduled functions as documented in Scheduling — SmartThings Developer Documentation that seemed to make the scheduling (runIn, specifically) not happen - no errors or anything else reported.

Is this a known limitation?

Thanks.

It's supported:

runIn(<seconds>,<methodToRun>,[data:<data>])

def methodToRun(data){...}

Hm, OK; I wonder if the problem wasn't related to me including an object (a device) as part of "data".
Thanks.

Yeah, that won't work either, an object is a pointer. You will need to assign the attributes of interest to a map, then stuff that in there.

Well, we could argue for a while about the "object is a pointer" statement... the implementation doesn't necessarily need to make that assumption... anyway, yes, I understand what you are saying.

Except we wont.

Agreed; life is too short for that.