Alex6323 / netzwerk

Prototyping an extendable networking crate.
Apache License 2.0
0 stars 0 forks source link

Removement of task::sleep() #4

Closed samuel-rufi closed 4 years ago

samuel-rufi commented 4 years ago

Make sure if the different task::sleep() are really necessary and if there might be cases where it doesn´t work as expected. Ideally it could be removed.

Alex6323 commented 4 years ago

Those were mostly included initially to simulate something is happening ;). With many fundamental things now implemented, there is only one instance in the lib, where this is still necessary. And that is for the auto-reconnect feature, where upon unintentional loss of connection, the system tries to automatically reconnect to a peer after a certain delay.