Skip to content

extmod/uasyncio: Add Loop.new_event_loop method. - #5890

Merged
dpgeorge merged 1 commit into
micropython:masterfrom
dpgeorge:extmod-uasyncio-new-event-loop
Apr 13, 2020
Merged

dpgeorge merged 1 commit into
micropython:masterfrom
dpgeorge:extmod-uasyncio-new-event-loop

Conversation

@dpgeorge

@dpgeorge dpgeorge commented Apr 9, 2020

Copy link
Copy Markdown
Member

Following on from #5820, this PR adds Loop.new_event_loop() which is used to reset the singleton event loop. This functionality is put here instead of in Loop.close() to make it possible to write code that is compatible with CPython.

@dpgeorge dpgeorge added the extmod Relates to extmod/ directory in source label Apr 9, 2020
@dpgeorge dpgeorge changed the title extmad/uasyncio: Add Loop.new_event_loop method. extmod/uasyncio: Add Loop.new_event_loop method. Apr 9, 2020
@dpgeorge
dpgeorge force-pushed the extmod-uasyncio-new-event-loop branch from 582290e to ecf45eb Compare April 9, 2020 03:21
This commit adds Loop.new_event_loop() which is used to reset the singleton
event loop.  This functionality is put here instead of in Loop.close() to
make it possible to write code that is compatible with CPython.
@dpgeorge
dpgeorge force-pushed the extmod-uasyncio-new-event-loop branch from ecf45eb to db137e7 Compare April 13, 2020 12:17
@dpgeorge
dpgeorge merged commit db137e7 into micropython:master Apr 13, 2020
@dpgeorge
dpgeorge deleted the extmod-uasyncio-new-event-loop branch April 13, 2020 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extmod Relates to extmod/ directory in source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant