a more non-deprecated way to determine that we're on the main queue