Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

419
Views
No se esperan argumentos de tipo para la clase Flow

Encontré un problema con Kotlin Flow.

Copié el siguiente código de código de la guía oficial

 fun simple(): Flow<Int> = flow { for (i in 1..3) { delay(100) emit(i) } }

Pero Android Studio muestra el siguiente error:

No se esperan argumentos de tipo para la clase Flow

¿Qué estoy haciendo mal?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Asegúrese de usar import kotlinx.coroutines.flow.Flow no java.util.concurrent.Flow , le da este error porque la clase de flujo concurrente de Java toma 0 argumentos de tipo, pero Coroutines Flow toma uno

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!