Difference between get() and get_next_item()+item_done()

hi,

I am a newbie for OVM. I read that get() call is equivalent to calling get_next_item, followed immediately by item_done.
So my question if get() does the function which get_next_item() and item_done() together do, then why there is a need for two different functions ?

Thanks

If you need to insert a delay between the two methods (get_next_item() is a task, item_done() is a function)

Thanks Dave.

But can you explain in some detail.

Thanks.

In reply to dave_59:

If you need to insert a delay between the two methods (get_next_item() is a task, item_done() is a function)

Hi Dave, Could you explain this in bit more detail, possibly with an example ?

Thanks,
Madhu

In reply to mseyunni:
https://verificationacademy.com/cookbook/driver/sequence_api#item_done

In reply to dave_59:

Hi Dave,

Sorry, after reading the article, I can understand the two use models and how they work. However, it is still not clear where it is possible to insert the delays?

Madhu

In reply to mseyunni:

With get(), the function item_done() is immediately called after the get_next_item() task, so if you want to have a delay between get_next_item() call and item_done() call, then in that case you should separately call get_next_item() and item_done().