added optional argument to runnable() method of Closure for thread function to get data