[NUCCORE-1097] Genericise some ExecutionContext methods