# Is there an alternative for \`asyncAfter\` for Actors?

**URL:** <https://forums.swift.org/t/is-there-an-alternative-for-asyncafter-for-actors/49429>\
**Category:** Using Swift\
**Tags:** concurrency\
**Created:** [June 9, 2021, 6:29pm UTC](https://forums.swift.org/t/is-there-an-alternative-for-asyncafter-for-actors/49429 "2021-06-09T18:29:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![filiplazov](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/filiplazov/32/7886_2.png) [@filiplazov](https://forums.swift.org/u/filiplazov)\
**Post date:** [June 9, 2021, 6:29pm UTC](https://forums.swift.org/t/is-there-an-alternative-for-asyncafter-for-actors/49429/1 "2021-06-09T18:29:26Z")

</div>

Hello,  
I am starting to play with the new Swift Concurrency features and so far I love them a lot.  
I tried to convert some logic that used dispatch queues to the new Actor types. There is one situation where I have no clear clue how to translate.

I use DispatchWorkItem and I dispatch work on a custom queue object using `asyncAfter` as well as `cancel` when I want to cancel. Additionally I use custom queue objects as schedulers for combine operations.  
How can I achieve similar functionaliy within an Actor's context?
