Configuring await() to work like sleep()

I am using await to make sleep function configurable, so basically my workflow should sleep for a certain time but I must be able to change the sleep duration when the workflow is in sleep

frequency = 5;
lastExecutedAt =;
Workflow.await(() -> (lastExecutedAt.plusMinutes(frequency.getMinutes()).isBefore(;

but after 5 min the workflow is not coming out of await, slack trace after 5 min is
workflow-method: (BLOCKED on Feature.get)

can you check the updateableTimer example in temporal samples