API for executing graph generators in a backgorund thread.