Changed the coroutine function to use regular function instead of generator to Provide Better Type Checking
[ ] This PR only introduces changes to documentation.
Please include a summary of changes and an explanation
[ ] This PR adds new functionality
[ ] Is there a related issue?
Please note the related issue below, and how this PR relates to the issue if appropriate
[ ] Does the code style reasonably match the existing code?
[ ] Are the changes tested (using the existing format, as far as is possible?)
[ ] Are the changes documented in the readme with a suitable example?
[ ] Is the table of contents updated?
[x] This PR introduces some other kind of change
Please explain the change below
Coroutine function has been changed to use a regular function instead of generator function. It would provide type intellisense while working with coroutines. New Usage is provide below.
Changed the coroutine function to use regular function instead of generator to Provide Better Type Checking
Coroutine function has been changed to use a regular function instead of generator function. It would provide type intellisense while working with coroutines. New Usage is provide below.
Old Usage:
New Usage: