I am new to android development. I came across a project in kotlin where post was used in RecyclerView.
recyclerView?.post { layoutManager?.scrollToPosition(MainActivity.currentPosition) }
Can anyone please explain what is the use of post in the above case? Thanks in advance