[expo-task-manager] TaskManagerTaskExecutor can't use an async func?

Please provide the following:

  1. SDK Version: 37
  2. Platforms(all):


Want to use async function inside the task. Then I’m passing an async function into defineTask as the second parameter, but now eslint tells me the return value type of TaskManagerTaskExecutor is void, and not Promise<void>.


I can’t use any async function in TaskManagerTaskExecutor? If we can, the type of TaskManagerTaskExecutor should be void | Promise<void>.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.