if already on the main thread, call task immediatly