Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Can you create an interface that can be implemented by both suspending and synchronous functions? I don't remember.

I do know you can at least specify suspend in an interface method to enforce its implementers to be suspending too. Note that this is e.g impossible in typescript..



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: