Can suspend functions not be called within a lambd...
# server
r
Can suspend functions not be called within a lambda?
Copy code
private suspend fun scanProjects(
            projectMap: Map<String, String>,
            projectRepos: List<ProjectRepo>,
            runNumber: Long,
            projectsScanned: Set<String>) {
        launch {
            projectMap.forEach { key, projectName ->
                val allReposForProject = projectRepos.filter { it.projectKey.equals(key) }
                async {  processProject(key, projectName, allReposForProject, runNumber, projectsScanned) }.await()
            }
        }.join()
    }
Causes:
Kotlin: Suspension functions can be called only within coroutine body
#coroutines