Creates a new scalafx.concurrent.Task with a operation that actually performs the background thread logic.