add support for scheduling anonymous functions
Merge pull request #5 from taybin/schedule_anon

Add support for scheduling anonymous functions